User and Order are two microservices built using C# ASP.NET. They are designed to work together and are connected to the same database. The User service handles user registration and authentication, while the Order service provides functionality for working with dishes and orders. The microservices are designed to be scalable and fault-tolerant, ensuring that the system can handle high volumes of traffic without downtime.
- Create a PostgreSQL database.
- Update the connection strings in OrderService/appsettings.json and UserService/appsettings.json to point to your database.
- Apply the migrations by running the command
dotnet ef databaseupdate in the root directory of each service. - Navigate to the UserService directory and run the command
dotnet runto start the User service. - Navigate to the OrderService directory and run the command
dotnet runto start the Order service. - Open Swagger to interact with the APIs.