🚀 Jose Carrillo Solution - Stable version v1.0 #418
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Managing Microservices with Makefile
This project uses a
Makefileto manage two microservices in a Docker environment. It includes tasks for starting and stopping the microservices separately. Be sure to follow the instructions to set up your environment correctly.Requirements
Before using the
Makefile, ensure you have the following tools installed:Environment Setup
Verify Docker and Docker Compose are running:
Check that required ports are available:
5432(or whatever port you use) is not occupied by another process.Using the Makefile
Starting the Microservices
Open two terminals:
Start the Anti-Fraud microservice:
Start the Transactions microservice:
Ensure that
docker-composeis running before starting the microservices. Thestart-anti-fraudandstart-transactionscommands will bring up Docker Compose in detached mode (-d) and then start the respective services.Making a Sample Request
To test the Transactions microservice, you can make a sample
curlrequest to create a transaction. Use the following command:Author
Name: Jose Carrillo
Phone: +57 (320) 851-0712
Mail: soyjrcarrillo@gmail.com