-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This E-Commerce Project is based on microservice architecture build with Microsfot .net. In this wiki, we will explore some further aspects of the project, like infrastructure, architecture and general scope of functionality.
The main sections of the wiki can always be accessed from the sidebar on the right side.
The project was build with .net version 6.0.16. The following instructions will take advantage of the github package repositories, where NuGet packages and Docker images are deployed. If you are more comfortable with using your own images take a look on the Deployment page. There you can find two sections on how to build NuGet and Docker locally.
-
Get the common NuGet packages of the project
- Add the github nuget repository in your NuGet.Config
- Refresh NuGet packages, if its not done automatically
-
Setup the database (this hopefully wont be necessary soon)
- Install DotNet EF Core Tools
- Run
docker-compose -f docker-compose.infrastructure.yml up
to start the infrastructure separately - Go into each service Web project (e.g
cd src/Services/Account/Account.Web
) - Run
dotnet ef database update
- Repeat step 3 and 4 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 separate 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
Notes:
- Each service has a swagger.json that is accessible via
<serviceUrl>/swagger/index.html
- A admin user is created by default with the following credentials:
- Email: ecommerce@admin.de
- Password: !abc123?
- A customer user can be created via the Account service.