Skip to content

A Next.js template with Prisma, MongoDB, TailwindCSS, Shadcn, Zod and Next auth

Notifications You must be signed in to change notification settings

websharkdev/nextjs-start

 
 

Repository files navigation

A Next.js template

A Next.js app that uses Shadcn, Prisma ORM, MongoDB and Next auth

Deploy with Vercel

Updating deps

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:

Live preview

About

A Next.js template with Prisma, MongoDB, TailwindCSS, Shadcn, Zod and Next auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.7%
  • JavaScript 5.2%
  • CSS 2.9%
  • Shell 0.2%