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