|
1 |
| -# Message-Queue-System |
2 |
| -Golang Message Queue System using RabbitMQ |
| 1 | +# Message-Queue-System 📌 |
| 2 | + |
| 3 | +### Golang Message Queue System using RabbitMQ |
| 4 | + |
| 5 | +### Requirement :: |
| 6 | +1. Golang |
| 7 | +2. MongoDb |
| 8 | +3. RabbitMQ |
| 9 | +4. Postman Api testing tool |
| 10 | + |
| 11 | + |
| 12 | +## A Backend application Implementing Message Queue System |
| 13 | + |
| 14 | + Task |
| 15 | + |
| 16 | + 1.Create an REST API server in Golang which implements the endpoints to addProduct. |
| 17 | + |
| 18 | + 2.Push the code to GitHub and submit the URL of the git repository. |
| 19 | + |
| 20 | + |
| 21 | +### 📢 Functional requirements: |
| 22 | + |
| 23 | +● Create api to insert |
| 24 | + |
| 25 | +| Description | HTTP METHODS & URL | REQUEST | Response |
| 26 | +| ------------- | ------------- | -------- | -------- |
| 27 | +| Endpoint for add Product | [POST] /addProduct | { <br> user_id:"int",<br> product_name:"string",<br>product_description:"string",<br> product_images:"[]string",<br> product_price:"int",<br> compressed_product_images: "[]string",<br> created_at:"time",<br> updated_at:"time"} | 200 OK (on success) <br> 400 Bad Request (if request format is invalid) |
| 28 | + |
| 29 | +● Create 2 Services Producer and Consumer |
| 30 | + |
| 31 | +● Make sure Producer can Consumer both should be connected to RabbitMQ Server |
| 32 | + |
| 33 | + |
| 34 | +## You Can Run this Message Queue Backed System |
| 35 | + |
| 36 | +1. Locally 🚀 |
| 37 | + |
| 38 | +## Run Locally 🚀🚀 |
| 39 | + |
| 40 | +#### `Check-Point` : |
| 41 | + a. Make Sure You have Go installed in your local machine |
| 42 | + |
| 43 | + b. Make Sure You have Mongodb installed in your local machine |
| 44 | + |
| 45 | + c. Make Sure RabbitMQ should be installed in your local Machine |
| 46 | + |
| 47 | + d. Make Sure to Postman API Testing Tool installed ~ For Testing Purpose |
| 48 | + |
| 49 | + |
| 50 | +## Directory: |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +## Screenshots ✔✔ |
| 57 | + |
| 58 | +###### Image 01 : Start Producer Services |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +###### Image 02 : Start Consumer Services |
| 63 | + |
| 64 | + |
| 65 | +###### Image 02 : Add a Product |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +###### Image 03 : Producer Service |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +###### Image 04 : Consumer Services |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | +###### Image 05 : Image Downloaded in local dir |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | +###### Image 06 : DataBase Updated Details: |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +## Tech Stack |
| 88 | + |
| 89 | +**Language:** Go <br> |
| 90 | +**Database:** MongoDB <br> |
| 91 | +**MessageQueue:** RabbitMQ <br> |
| 92 | +**API-Testing:** PostMan <br> |
| 93 | + |
| 94 | +## Authors |
| 95 | + |
| 96 | +#### Saurabh Kumar |
| 97 | +- [py3-coder](https://www.github.com/py3-coder) |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
0 commit comments