This is a do testing from [MyCloudFulfillment] Backend Developer(Node.js) Test
There are 2 containers to run up. One for warehouse service and another one for database.
$ docker-compose up warehouse
$ docker-compose down
http://localhost:9000/api/0.0.1/
GET /deposit-receipts
GET /dispatch-receipts
POST /inventory/deposit
POST /inventory/dispatch/price
POST /inventory/dispatch
PUT /inventory/dispatch
GET /deposit-receipt/{id}/inventories
GET /dispatch-receipt/{id}/inventories
GET /inventory/{id}
GET /inventory/{id}/audit
GET /inventoryType/{id}
POST /payment/deposit
GET /report/profit
Tip: Check it out the payload at online API document here
Tip: Or you can use postman script from here
POSTGRES_USER: 'api'
POSTGRES_PASSWORD: 'api'
POSTGRES_DB: 'fulfilment'
POSTGRES_HOST: localhost
POSTGRES_PORT: 5001
$ npm run unit-test
Note:
- Designed from microservices concept.
- Currently, payment service didn't implement yet. Because I want to focus on warehouse service as following requirement. However, payment service are place in warehouse service just for temporary.
As my concept there are many thing todo. You can see pending features from trello board