This is Next.js project boilerplate with Nest.js as backend.
Includes:
- Next-Auth
- Stitches
- Formik
- Yup
- SVG as Component
- Prisma
Install dependencies
yarn install
Copy .env file from template
cp .env.example .env
Setup environment variables
DATABASE_URL=postgres://admin:admin@localhost:5432/localdb
EMAIL_SERVER=smtp://username:[email protected]:587
[email protected]
GITHUB_CLIENT_ID=xxx
GITHUB_CLIENT_SECRET=xxx
NEXTAUTH_URL=http://localhost:3000
Setup Postgres Database with Docker-compose
docker-compose up -d
Generate Prisma Client with provided schema
yarn generate
Run migration
yarn migrate
Finally
yarn dev