The RapidOrders application is designed to streamline product ordering and is composed of four key services:
- ProductService: A gRPC client service facilitating order placement and updates.
- GrpcOrderService: A gRPC server allowing the creation and modification of orders.
- NotificationService1: Listens for notifications related to order creation from a RabbitMQ exchange.
- NotificationService2: Listens for notifications related to both order creation and updates from a RabbitMQ topic.
Follow these steps for a seamless installation:
-
Windows Machine:
- Ensure you are using a Windows environment.
-
Visual Studio 2022 Preview:
- If not already installed, download and install Visual Studio 2022 Preview with the ASP.NET and web development workload.
-
.NET SDK 8.0:
- If not already installed, download and install .NET SDK 8.0.
-
RabbitMQ:
- Install RabbitMQ from rabbitmq.com/download.html.
-
Clone the Repository:
- Open a terminal and run the following command:
git clone https://github.com/abhi6690/MiddlewareAssignment.git
- Open a terminal and run the following command:
-
Update Configuration:
-
Navigate to the following paths and update the
appsettings.json
file with RabbitMQ credentials in each project:.\MiddlewareAssignment\GrpcOrderService\appsettings.json
.\MiddlewareAssignment\NotificationService1\appsettings.json
.\MiddlewareAssignment\NotificationService2\appsettings.json
"RabbitMQ": { "HostName": "localhost", "UserName": "guest", "Password": "guest" }
-
-
Build and Run:
- Navigate to the root folder and execute the PowerShell script
Start_All_Services.ps1
to build and run all projects.
- Navigate to the root folder and execute the PowerShell script
By following these steps, you'll have the RapidOrders application up and running, ready to handle your product ordering needs efficiently.