/iv-wemo-backend

Wemo Backend Engineer 題目實作

Primary LanguageTypeScript

Wemo Backend Engineer 題目實作

Document


環境變數

  • PORT: server port3000
  • DB_HOST: postgresql 的連線位址, 預設為postgis
  • DB_PORT: postgresql 的連線port, 預設為5432
  • DB_USER: postgresql 的username
  • DB_PASSWORD: postgresql 的password
  • DB_SYNC: default: false

How to start

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start: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

License

Nest is MIT licensed.