Skip to content

TakahiroHimi/Next-GitHubGraphQLAPI-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

事前準備

  1. こちらを参考に GitHub OAuth Application を作成する。
    OAuth Application  設定値

    • Application name:任意の名前 例)NextAuth-sample
    • Homepage URLhttp://localhost:3000/
    • Application description:任意の description  例)Sample App for NextAuth
    • Authorization callback URLhttp://localhost:3000/
  2. .env.sampleをコピーしてファイル名を.env.localにリネームし、ファイル内容を編集する。

    GITHUB_ID=作成したOAuth ApplicationのClientID
    GITHUB_SECRET=作成したOAuth ApplicationのClient secrets
    

実行手順

  1. パッケージインストール・アプリ実行
    yarn install
    yarn dev
  2. http://localhost:3000/ にアクセス