Clerk core 2.0 came with a new setup which frustrated me a bit.
I have setup Clerk middleware, tRPC protectedProcedure, clerk webhooks and a few other things.
Feel free to use this as a starting point for your own project.
You can contribute to it to improve it. Clerk all the way.
By the way i hope you like shadcn UI too.
-
Clone the repository and install the dependencies:
# Clone repository git clone [email protected]:jessequartey/next-clerk-trpc.git # Install dependencies npm i
-
Copy
.env.example
to.env
and update the variables accordingly.cp .env.example .env
-
Sync the Drizzle schema with your database
npm db:push
-
Start the development server:
npm dev