Skip to content

HORKimhab/nestjs-codebase

Repository files navigation

nestjs-codebase

Resource

  • Project Name: nestjs-codebase
  • Title: Nestjs-codebase

Config

$ cp .env.example .env

Config your env

Installation

$ yarn install
$ npm run seed-refresh

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
  • setup nestjsx\crud | crud nestjsx with pacakge | nestjs crud | crud nestjs with pacakage
  • yarn run mig-gen database/migrations/{Name}

seed-referesh

# Delete all tables in mysql manually

Drop all tables from database

  "drop-db": "npm run typeorm schema:drop",

Note:

Key: check_in_keep_or_env_same45

  • npx prettier --write . "Fix: Delete eslintprettier/prettier fix it "

Fix error Cannot destructure property 'parsed' of 'req' as it is null.