This is a backend part of smarthome project.
make dc-up
- open
http://ip-address:4444
npm i
npm run dev
npm run test
npm run test --file test/cases/services/user.service.spec.ts
NODE_ENV: development | production | test
- node environmentPORT: number
- port where api gateway is runingdefault: 4444
MONGO_URI: string
- mongo uriexample: mongodb://mongo/smarthome, default: null - then it uses memory db
JWT_SECRET: string
- secret for jwt (sign and verify)default: jwt-smarthome-secret
CRYPT_SALT: number | string
- salt for cryptdefault: 10