CARS API SERVICE
- Create
.envand.env.testconfig files inside root directory:
cp .env.example .env && cp .env.test.example .env.test- Run
yarn installcommand.
Start docker container for PostgreSQL DB:
npm run docker-middleware-devAfter that, you can serve the app with yarn start command.
Run docker containers with following command:
docker-compose up- To run unit tests, run
yarn testcommand. - To run e2e tests, you must be sure that docker container for PostgreSQL was started in development mode (see development section above). After that, test DB will be createad for e2e purposes. You can start e2e tests by
yarn test:e2ecommand.