A developer directory built on Next.js and MongoDB Atlas, deployed on Vercel with the Vercel + MongoDB integration.
Featured on the MongoDB World keynote.
You will need to create a GitHub OAuth App to use this starter. Here are the steps:
Go to https://github.com/settings/developers and create a new OAuth application
Name your application "MongoDB Starter"
Set the homepage URL to https://vercel.app
for now (we'll change this later)
Set the authorization callback URL to https://vercel.app/api/auth/callback/github
for now (we'll change this later)
Click "Register application".
Once the application is created, copy the "Client ID". This will be your GITHUB_CLIENT_ID
.
Generate a new client secret and copy that too. This will be your GITHUB_CLIENT_SECRET
.
Generate a random secret here. This will be your NEXTAUTH_SECRET
.
Click on this button below to clone and deploy this template to Vercel.
Once your application is deployed, edit the homepage & callback URLs in your GitHub OAuth App to match your deployment URL.
https://vercel.com/integrations/mongodbatlas