Create a planetscale database called main
, and create a branch from it called shadow
.
Open two terminals and run these commands. One in each terminal.
pscale connect bookly main --port 3309
pscale connect bookly shadow --port 3310
Every time the model in schema.prisma
changes, run:
npx prisma migrate dev
- Next-Auth.js
- Prisma
- tRPC (using @next version? see v10 docs here)
Also checkout these awesome tutorials on create-t3-app
.
- Build a Blog With the T3 Stack - tRPC, TypeScript, Next.js, Prisma & Zod
- Build a Live Chat Application with the T3 Stack - TypeScript, Tailwind, tRPC
- Build a full stack app with create-t3-app
- A first look at create-t3-app
- Protecting routes with Next-Auth.js
We recommend deploying to Vercel. It makes it super easy to deploy NextJs apps.
- Push your code to a GitHub repository.
- Go to Vercel and sign up with GitHub.
- Create a Project and import the repository you pushed your code to.
- Add your environment variables.
- Click Deploy
- Now whenever you push a change to your repository, Vercel will automatically redeploy your website!