Simulating communication between two apis, using rabbitMQ and database persistence
The project has two apis, main and payment. Payment is the consumer of the queue, while main triggers a message after inserting a post into the system, causing payment to register in the database with the information coming from main.
Make sure you have dokcer installed on your computer:
- Open the terminal or command prompt.
- To clone the project via HTTPS, run this command:
git clone https://github.com/w-araujo/rabbitmq-apis-ts.git
- Navigate to the project directory using the
cd
(change directory) command. - fill in the environment variables in the
.env
file at the root of the project - Run the command in the terminal at the root of the
docker-compose up
project to initialize the container
This project is under the MIT license. See the file LICENCE for more details.