Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.43 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.43 KB

RabbitMQ_ReportService

Welcome to this repository! Follow the steps below to get started.

Getting Started

1. Download the Project

Firstly, clone or download this repository to your local machine using:

git clone https://github.com/Molandrious/RabbitMQ_ReportService.git

2. Create the resources Directory

After you've downloaded the project, navigate to its root directory and create a resources directory. Inside this directory, place your data.json file:

3. Setup RabbitMQ Container Settings

The RabbitMQ settings for the Docker container can be found in the Docker compose file. Modify them if necessary to match your environment or leave them as is if they suit your needs.

4. Run Docker Compose

Navigate to the directory containing the docker-compose.yml file and run:

docker-compose up

Please wait around 15 seconds after the Docker containers are up to ensure all services have initialized correctly.

5. Check Environment Settings

Before running the client, ensure the environment settings inside client match the Docker compose settings for RabbitMQ. Modify them if necessary.

6. Run client.py

Install requirements.txt on yur local machine.

pip install -r requirements.txt

You can change the requests data by using the provided example_requests.json inside client_example dir. Once you're ready, execute:

python .\client_example\script_client.py