A Next.js app that uses Shadcn, Prisma ORM, MongoDB and Next auth
To update deps to their latest versions, run:
./scripts/update-deps.sh
You need to pass an env. variable with the URI for the MongoDB connection, as well as next-auth
env. variables:
MONGO_URI=
NEXTAUTH_SECRET=
GOOGLE_APP_CLIENT_ID=
GOOGLE_APP_CLIENT_SECRET=
NEXTAUTH_URL=
To create the NEXTAUTH_SECRET
hash, run this in your terminal:
openssl rand -base64 32
It will generate a 44-character random string
You can also place those variables inside a .ENV
file (don't forget to add it to your .gitignore
file)
Related documentation: