Skip to content

Latest commit

 

History

History
89 lines (59 loc) · 1.32 KB

README.md

File metadata and controls

89 lines (59 loc) · 1.32 KB

Backend for TeamMapper

Description

Backend for TeamMapper, build with Nest

Installation

  • Install dependencies
$ npm install
  • Duplicate and rename .env.default
cp .env.default .env

Change variables according to your preference

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# start backend and frontend at the same time
# frontend is accessible via localhost:4200
$ npm run dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Typeorm

For a list of commands check https://github.com/typeorm/typeorm/blob/master/docs/using-cli.md

Some useful commands include:

Drop schema

npm run dev:typeorm schema:drop

For development, sync db structure

npm run dev:typeorm schema:sync

For pruction environments, run migrations, see https://github.com/typeorm/typeorm/blob/master/docs/migrations.md

npm run prod:typeorm:migrate

or run migrations on dev:

npm run dev:typeorm migration:run

Generate new migration based on current changes

npm run dev:typeorm migration:generate -n AddSomethingHere

License

Nest and teammapper are MIT licensed.