A small demo of communication between two microservices.
- Open a terminal and cd to
microservice-demo/api-gateway
- Run
npm i
(one time for each folder only) - Run
npm run build
(one time for each folder only) - Run
npm run start
- Open a terminal and cd to
microservice-demo/business-logic
and repeat step 2, 3, and 4. - Go to localhost
From here you can increment, decrement, and view the funds of the current user (default Romeo). Additionally, you can switch user to Juliet
For this to work only step 5 above is required.
Import the postman collection: microservice-demo/microservice-demo.postman_collection.json
(How to).
Within this lies three folders:
Same functionallity as website, however with posibillity to add funds for Juliet (but not remove or view balance)
Same functionallity as website
Access the getAvailableFunds endpoint for the buisness logic service directly. This is merely to display the usage of the gateway token.