Execute followed command for running and testing application
cp .env.dev .env
- creating env filenpm ci
- installing dependenciesdocker-compose build
- build application docker imagedocker-compose up -d
- starting database and applicationdocker-compose exec node1 npm run db:migration:run
- running migrationsdocker-compose exec node1 npm run test
- running unit testdocker-compose exec node1 npm run test:e2e
- running integration test
POST http://localhost:3333/event
- create new event
{
"name": "tes1",
"startDate": "2020-06-01",
"endDate": "2020-06-02",
"description": "desc1"
}
GET http://localhost:3333/event
- receive all existed events
This repository contains some test task solution, not the API of the real project.