domain
- the main concepts of the project.
NOTE: It's necessary to build domain before all tests or execution commands because it's a common dependencie used to test data structures and validate all entities of this domain.
The following script will run:
- domain build;
- domain test;
- server test;
- client test;
yarn test
This will build and run the client application (at port 3000)
yarn client start
This will build and setup an application to docker-cli (runned at port 8080).
docker-compose up
Since this api doesnt use swagger, keep in mind these endpoints:
/customer
- GET, POST and PATCH
/customer/:id
- GET - gets one customer by its ID
/city
- GET and POST
/companies
- GET and POST
Consulted benchmark: Knex Vs Sequelize.