- Express.js: HTTP Server
- Sequelize: Database ORM
- Mysql2: Required drivers for ORM
- API RESTful (Node/Express.js with Sequelize as ORM) -
http://localhost:3001
- Database (MySQL)
- Frontend (React.js) -
http://localhost:3000
docker-compose up --build -d
Feel free to change the server listening port in ./config/.env
, and check docker-compose.yml
for database configuration.
You can run the current test suite both inside the server container or from the project folder, in the last case, please remember to install all dependencies first with npm install
.
docker-compose exec server sh
npm run test
Transactions:
- POST
http://localhost:3001/transactions
(CREATE) - GET
http://localhost:3001/transactions
(READ - ALL) - GET
http://localhost:3001/transactions/id
(READ - BY ID)
Users:
- GET
http://localhost:3001/users
(READ - ALL) - All CRUD operations are available but are out of task scope.
- POST
http://localhost:3001/users
(CREATE) - PUT
http://localhost:3001/users/id
(UPDATE - BY ID) - DELETE
http://localhost:3001/users/id
(DELETE - BY ID)