A starter repo for GitHub integration with NestJS
$ npm install
- Go to
Settings
. - Go to the
Developer settings
pane on the right. - Click the
OAuth Apps
pane. - Click
New OAuth App
. - Enter
http://localhost:3000/
in the Homepage URL. - Enter
http://localhost:3000/callback
in the Authorization callback URL. - Click Register application.
- After cloning this project locally, in the file
.env
, add - CLIENT_ID - client id of the created oauth app
- CLIENT_SECRET - client secret of the created oauth app
- For running the application:
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Visit http://localhost:3000/ to view the login page.