🔥 See it in action: https://nextjs-example-six-nu.vercel.app/
Note: The setup assumes a Linux environment.
- Clone the repo and pull LFS objects.
- Run
npm installornpm ito install the dependencies. - If you haven't already, install the Vercel CLI using
npm i -g verceland login using the commandvercel login. - Link the project using
vercel linkand runvercel env pullto download the environment variables. - Run
npx prisma generateto generate the prisma client.
Now, you can start the development server using npm run dev or build the app using npm run build. Run npm start to run the build. Note that the build may not support auth if run locally.
Make changes to your schema.prisma and run npx prisma migrate dev. Then run npx prisma generate to generate the new Prisma client. Run npx prisma studio to view the changes.
- Prettier
- Tailwind
- etc.
The following VS Code configuration ensures the extension recognizes and provides autocomplete suggestions for classes nested within functions like cva or cn. Without it, IntelliSense will only trigger in standard className strings.
{
"tailwindCSS.classFunctions": ["cva", "cn", "clsx", "twMerge", "variant"]
}Theme: Tiesen (from <tweakcn.com>).
- Next.js: https://nextjs.org/docs
- Auth.js: https://authjs.dev/getting-started
- Prisma: https://www.prisma.io/docs
- Motion: https://motion.dev/docs/react
- Typography: https://github.com/tailwindlabs/tailwindcss-typography
- TailwindCSS: https://tailwindcss.com/docs
- Shadcn: https://shadcn.com/