A basic Next.js starter.
- Linting / Code Style
- Environment Variables
- Styles / UI
- Validation
- Forms
- Database
- Authentication
The main branch contains the entire setup. The following branches build on each other from top to bottom:
- Install dependencies:
pnpm install- Copy the
.envfile:
cp .env.example .env- Update the following values in the
.envfile:
NEXTAUTH_SECRET=your-value-here
GOOGLE_CLIENT_ID=your-value-here
GOOGLE_CLIENT_SECRET=your-value-here- Start the database:
docker compose up- Migrate the database:
pnpm run db:migrate- Start the app:
pnpm run dev