Skip to content

NestJS boilerplate. Auth, TypeORM, Postgres, Docker. Next.Js, Webpack, Monorepo

Notifications You must be signed in to change notification settings

thisalihassan/nestjs-nextjs-boilerplate

Repository files navigation

Nest framework TypeScript starter repository.

Installation

# npm 8 or higher
# node 16 or higher

$ npm install

HUSKY for linting staged files

$ npm run husky
$ npm run lint:fix

Database

$ docker-compose --version (must be 2.7.0)
$ docker-compose up db -d
$ docker-compose exec db bash
$ psql -U postgres -d projectz

psql commands docker cleanup

Migrations

# run migrations
$ npm run migration:run

# generate migrations
$ npm run migration:generate

# revert migrations
$ npm run migration:revert

if you get error on migrations try deleting dist folder, remove db container and volume

Running the app

# development
$ npm run start:dev
$ cd client && npm run dev

# build
$ npm run build
$ cd client && npm run build

# production mode
$ npm run start
$ cd client && npm run start

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.

About

NestJS boilerplate. Auth, TypeORM, Postgres, Docker. Next.Js, Webpack, Monorepo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published