- Start a docker container with a postgres database.
docker compose up- Push the schema to database
npx prisma dp push- Open prisma studio to make sure the database has a right shape.
npx prisma studio-
Go to GitHub -> Settings -> Developer settings -> OAuth Apps -> New OAuth App
-
Fill the data
- Application name:
YourAppName - Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/api/auth/callback/github
-
Go to GitHub -> Settings -> Developer settings -> OAuth Apps -> YourAppName.
-
Copy Client ID to
GITHUB_CLIENT_IDenv variable -
Copy Client secret to
GITHUB_CLIENT_SECRETenv variable