tn / next-nest-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:password@smtp.emailserver.com:587
EMAIL_FROM=noreply@yourdomain.com
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

License:MIT License


Languages

Language:TypeScript 98.6%Language:Shell 1.4%