A starter template for building modern web applications with Next.js, Emotion, Mantine, TRPC, and more.
Designed to be a fast way to get started from zero to having a Minimum Viable Product.
- NextAuth.js - Authentication
- TRPC - end-to-end typesafe RPC over HTTP/JSON'
- Zod - Type-safe schemas and validations
- React Query - Data fetching and caching
- Mantine - React components and hooks
- Emotion - CSS-in-JS
- Drizzle ORM - Database migrations and more
- Next.js - React meta framework
- Zustand - State management
- Planetscale - Database
To use this template, you can clone the repository and install dependencies with Yarn:
git clone git@github.com:panthyy/Zero2MVP.git
cd Zero2MVP
yarn install # or npm install
copy .env.example
to .env.local
and fill in the values.
This template uses Drizzle ORM to manage database migrations and more. It is configured to use mysql specifically Planetscale's vitess.
To create a new migration, run the following command:
yarn db:gen
To push migrations to the database, run the following command:
yarn db:push
To run the development server, run the following command:
yarn dev
To build the application, run the following command:
yarn build