This is a Github OAuth App project that uses Cotter, Next.js, Github API to get user's repository list.
- Follow the tutorial at Cotter's Blog.
- Get your Cotter API Keys on Cotter's Dashboard.
- Export your API Keys:
export COTTER_API_KEY_ID=<API KEY ID>
export COTTER_API_SECRET_KEY=<API SECRET KEY>
yarn dev- Make a file called
apiKeys.jsin the root folder, and copy this into the file:
export const API_KEY_ID = <API_KEY_ID>;- Run the development server
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.