- Run
npm install
in the root of the directory for development purposes
cp .env.example .env
docker-compose up --build
- Docker supports hot reloading with
tsc
andnodemon
After starting the server, the docker should output the URL of the app and swagger documentation, but they should be located athttp://localhost:3000
together withhttp://localhost:3000/docs
cp .env.example .env.tests
docker-compose --env-file=.env.test -f docker-compose.test.yml up --build
- After the database is up, you can run the tests with following command:
npm run test
- Almost every command can be run against the test environment with the prefix
NODE_ENV=test