A starter for NextJS fullstack projects with all you need to start your side project or your dream. Do your thing.
- 📡 API using tRPC
- 📦 Database with Prisma & Postgres
- 👾 Very lenient Typescript configuration (this is by design)
- 🔒 Auth with NextAuth
- Credentials setup for Email and Password
- Forgot Password email and template
- ☀️ Tailwind
- 🐻 Zustand for any extra state management needs
- 📰 Blog example
- Create post
- Show all posts
- Protected routes
- Protected API routes
- 🎨 ESLint + Prettier + Lint Staged
- 💚 CI setup using GitHub Actions:
- Build
- Linting
- Post list
- Single post
- Create a post
- Sign in
- Sign up
- Request a new password
- Change Password
- Node >= 14
- Docker (for running Postgres)
git clone https://github.com/SaraVieira/next-fullstack-starter
cd trpc-prisma-starter
yarn
cp .env.example .env
yarn dx
yarn build # runs `prisma generate` + `prisma migrate` + `next build`
yarn db-nuke # resets local db
yarn dev # starts next.js
yarn dx # starts postgres db + runs migrations + seeds + starts next.js
yarn lint # runs eslint on all files
Using Render
The project contains a render.yaml
"Blueprint" which makes the project easily deployable on Render.
Go to dashboard.render.com/blueprints and connect to this Blueprint and see how the app and database automatically gets deployed.
MIT