Skip to content

christojor/ToDoDevSecOpsMinimalAPI

Repository files navigation

ToDo DevSecOps Minimal API

Project Description

A minimal ToDo web API demonstrating secure DevOps practices, using .NET 9 and a layered architecture for application, domain, and infrastructure concerns. The project includes unit tests and a security analysis document.

Running Locally

Prerequisites

  • Install the .NET 9 SDK: Download .NET 9 SDK
  • Optional: Visual Studio or Visual Studio Code with C# extensions

Steps

  1. Clone the repository and open a terminal in the repository root.
  2. Restore packages:
    dotnet restore
  3. Build the solution:
    dotnet build
  4. Run the API project (from the project folder that contains Program.cs):
    dotnet run
  5. Open the API in a browser at the URL shown in the console (typically https://localhost:5001 or http://localhost:5000).

Running Tests

To run all tests from the solution root, use the following command:

dotnet test

To run a specific test project, specify its path:

dotnet test ./ToDoDevSecOpsMinimalAPI.Tests/ToDoDevSecOpsMinimalAPI.Tests.csproj

Frontend

A companion frontend application that works with this API is available at:

Clone and run the frontend separately; configure its API base URL to point at this API (for local development use http://localhost:5000/api or https://localhost:5001/api).

Security Requirements

See the full security requirements and analysis: Security Requirements

About

.NET Minimal API for DevSecOps course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •