/nextjs-nestjs

Full stack application built with Next.js, NestJS, TypeScript, and Prisma

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Description

Full stack application built with React, NestJS, and Prisma.

A walkthrough for this project is available at WALKTHROUGH.md.

Installation

# Install Yarn
$ npm install -g yarn

# Install dependencies
$ yarn install

# Add .env file with DATABASE_URL and run migrations
$ yarn prisma migrate dev

# Enable pre-commit hook with Husky
$ yarn husky install && npx husky add .husky/pre-commit "yarn lint-staged"

# JWT_KEY will also have to be set in .env for authentication

Running the app

# Development
$ yarn dev

# Open Prisma Studio to explore and manipulate your data
$ yarn prisma studio

# Go to http://localhost:3000/swagger to view and interact with the API

Test

# Run tests
$ yarn test

# Test coverage
$ yarn test:cov

Resources used