-
Notifications
You must be signed in to change notification settings - Fork 1
Home
E-Commerce Project based on microservice architecture build with Microsfot .net. In this wiki, we will explore some furhter aspects of the project, like infrastucture, architecture and general scope of functionallity.
The main sections of the wiki can always be accessed from the sidebar on the right side.
-
Reference the Common Nuget Package of the Project in the NuGet.Config. How to add a new source to the NuGet.Config (https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-add-source). Either do:
- Add the github nuget repository https://nuget.pkg.github.com/fredyyy998/index.json in your NuGet.Config
or
- Build the package by yourself and pack the project with
dotnet pack -o {direcotry path}
- Reference the local package directory in your NuGet.Config
-
Setup the database (this hepefully wont be necessary soon)
- Install DotNet EF Core Tools
- Run
docker-compose up db
to start the database separately. - Go into each service Web project (e.g
cd src/Services/Account/Account.Web
) - Run
dotnet ef database update
- Repeat the last two steps for each service
- Run
docker-compose down
-
Run
docker-compose up
in the project root to start the docker container providing a postgres database, the infrastructure for Apache Kafka and each web service in a seperate container. -
When each container is running the services should be accessible:
- Inventory: http://localhost:8080
- Account: http://localhost:8081
- ShoppingCart: http://localhost:8082
- Fulfillment: http://localhost:8083
Note: Each service has a swagger.json that is accessible via <serviceUrl>/swagger/index.html