Switch to microservices architecture

This commit is contained in:
Murtadha 2024-08-23 19:28:19 -04:00
parent e6cb076ab8
commit 1b0e5400c9
20 changed files with 273 additions and 172 deletions

View file

@ -1,51 +0,0 @@
# Portfolio Backend
This is the backend for the portfolio project, built with .NET 8.0.
## Project Structure
```
backend/
├── src/
│ └── PortfolioBackend/
│ ├── Controllers/
│ ├── Models/
│ ├── Repositories/
│ ├── Services/
│ ├── Migrations/
│ ├── Program.cs
│ ├── appsettings.json
│ ├── appsettings.Development.json
│ └── PortfolioBackend.csproj
├── tests/
│ └── PortfolioBackend.Tests/
│ ├── Controllers/
│ ├── Models/
│ ├── Repositories/
│ ├── Services/
│ └── PortfolioBackend.Tests.csproj
├── docker/
│ ├── Dockerfile
│ └── docker-compose.yml
├── .gitignore
└── README.md
```
## Setup
1. Ensure you have .NET 8.0 SDK installed.
2. Clone this repository.
3. Navigate to the `src/PortfolioBackend` directory.
4. Run `dotnet restore` to restore the NuGet packages.
5. Run `dotnet run` to start the application.
## Running with Docker
1. Ensure you have Docker and Docker Compose installed.
2. Navigate to the `docker` directory.
3. Run `docker-compose up --build` to build and start the containers.
## Running Tests
1. Navigate to the `tests/PortfolioBackend.Tests` directory.
2. Run `dotnet test` to run the unit tests.