Skip to content
Frederik Wulf edited this page Apr 20, 2023 · 27 revisions

Welcome to the ecommerce wiki!

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.

Getting Started

  1. Install Docker

  2. Install DontNet CLI

  3. 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:

    1. Add the github nuget repository https://nuget.pkg.github.com/fredyyy998/index.json in your NuGet.Config

    or

    1. Build the package by yourself and pack the project with dotnet pack -o {direcotry path}
    2. Reference the local package directory in your NuGet.Config
  4. Setup the database (this hepefully wont be necessary soon)

    1. Install DotNet EF Core Tools
    2. Run docker-compose up db to start the database separately.
    3. Go into each service Web project (e.g cd src/Services/Account/Account.Web)
    4. Run dotnet ef database update
    5. Repeat the last two steps for each service
    6. Run docker-compose down
  5. 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.

  6. When each container is running the services should be accessible:

Note: Each service has a swagger.json that is accessible via <serviceUrl>/swagger/index.html

Explore

Clone this wiki locally