- Docker and Docker-Compose
- Node.js LTS
- PostgreSQL
The default PORT for the application is: 3000
The BASE_URL for the routes is: localhost:3000/
Whatever you run on Docker or outside it, you will need to execute the Database Configurations.
Execute the following command: docker-compose up - d.
Before running it, you must provide your database credentials on file: config/database.js.
Execute the following command: npm run dev
Create the database log_api_development
Execute the following command: npm run sync:dev
- /api-docs - Access through the web browser and see the documentation (
Swagger
). - /users -
POST
: Create User - /session -
POST
: Login for web users.
-
/users/{id} -
GET
: Get info about a user. -
/users -
PUT
: Update a user. -
/users/{id} -
DELETE
: Remove a user. -
/logs -
POST
: Save a log. -
/logs -
GET
: Search for logs. -
/logs/{id} -
GET
: Get specific info about a log. -
/logs/{id} -
PUT
: Archive a log. -
/logs/{id} -
DELETE
: Remove a log.
This project has a coverage of 98%.
To run the tests, you need to create a database for it: log_api_test.
Then, run this command: npm run sync:test
To execute the tests: npm run test OR npm run test:coverage
- Adriano A. Tagliaferro (https://github.com/dritoferro)
- Talison Maturana (https://github.com/talisonmaturana)
- Thiago Rodrigues (https://github.com/Thiago92Rodrigues)
- Vinicius S Ricci (https://github.com/viniciussricci)