demo.mov
This is a starter template for a project with:
-
Tailwind CSS
-
TRPC.io
-
Prisma ORM
-
PostgreSQL.
It includes as well Authentication and the Authorization logic already set up for you so you can already start working on features
What may differentiate this repo from other starter templates is that this repo doesn't incentivize the use of Next.js serverless lambda functions: instead it has it's own separate and classic Node.js server.
- You may not want to use a serverless environment
- You don't need to deal with the connection pooling problem that serverless brings to PostgreSQL
- You may not want to use the custom server that Next.js provides because you lose Automatic Static Optimization.
- End to end typing
- Authentication and Authorization baked in
- SSR, SSG and ASO thanks to Next.js
- Capability of having cronjobs in the separate Node.js server
- Deploy your frontend to Vercel (plays along very well with Next.js) and your backend to Heroku/Render/AWS/etc...
- Super simple migrations with Prisma
- Run
yarn
to install everything - Replace the DATABASE_URL in
packages/backend/.env.development
cd packages/backend
and runyarn migrate:dev
to create the DB schema in your dev database- cd back into the root of the project and run
yarn server
to lift the server andyarn web
to lift the Next.js frontend