In the api
root creat a new file .evn
. You can copy the contents from .env.sample
.
Make sure you are running node version 12 and above.
Install global deps.:
npm install --global yarn
yarn global add nodemon
yarn global add typescript
Install all packages:
In the api
root execute npm i
$ docker pull mongo
$ docker run -p 27017:27017 --name inflighttest -d mongo
yarn run start
For Dev (with change watchers):
yarn run start:watch
App is will be running on localhost:3030
- Install Docker
- In the
.env
file changeDB_HOST
value tomongo
- In the
api
root rundocker-compose up
App is will be running on localhost:3030
In the api
root creat a new file .evn.test
. You can copy the contents from .env.sample
. Make sure to change the NODE_ENV
variable to test
.
Ro run automated tests, execute:
yarn run test