Skip to content

chrishj59/next-nest-boilerplate

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published