Backend for TeamMapper, build with Nest
- Install dependencies
$ npm install
- Duplicate and rename
.env.default
cp .env.default .env
Change variables according to your preference
# 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
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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
Nest and teammapper are MIT licensed.