51 lines
1.4 KiB
Markdown
51 lines
1.4 KiB
Markdown
# 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.
|