My personal template for building full-stack SaaS apps with Next.js and TypeScript.
- Next.js
- Prisma
- trpc
- Chakra UI
- Docker Compose, for external services like Postgres, Redis, Elasticsearch, etc
- Fly.io for hosting
In one tab, spin up Postgres:
docker compose up
In another tab, setup the app:
cd app
pnpm install
pnpm db:migrate
Then, start the development server:
pnpm dev
The app should be available at http://localhost:3000, where you should see something like this:
This app is setup to authenticate users with a magic link that gets sent via email by way of Mailgun.
You'll need to replace the values of the MAILGUN_*
variables in .env
to get that to work.