This is a cool boilerplate for Next.js projects. It includes setup for the following tools:
- TRPC
- Clerk
- Prisma
- PlanetScale
- Uploadthing - not yet implemented..
- Tailwind CSS
- Shadcn/UI
- Sonner
- NProgress
- Recoil
- Moment.js (for now, might be replaced with Date-fns)
- Lucide Icons
Do I have to tell you how?
- run
bun install
to install all dependencies
- Visit Clerk and create an account
- Create a new project
- Copy the
CLERK_SECRET_KEY
andNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
variables and paste them into.env.local
- Visit PlanetScale and create an account
- Create a new database and set framework to Prisma
- Copy the
DATABASE_URL
variable and paste it into.env.local
- run
bunx prisma db push
to push the state ofschema.prisma
to the database
Along with your Clerk, Uploadthing, and Database env variables, you will need to add the following:
/* nothing for now, might change later */
- run
bun dev
to start the app - Test Clerk authentication and tRPC works by following instructions
Happy hacking.