Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.22 KB

README.md

File metadata and controls

70 lines (51 loc) · 1.22 KB

This is Next.js project boilerplate with Nest.js as backend.

Includes:

  • Next-Auth
  • Stitches
  • Formik
  • Yup
  • SVG as Component
  • Prisma

Getting Started

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

Learn More

Next.js Documentation

Nest.js Documentation

Next-Auth Documentation

Formik Documentation

Prisma Documentation

Stitches Documentation

Credits

https://github.com/Skn0tt/nextjs-nestjs-integration-example