Skip to content

nanotaboada/Dotnet.Samples.AspNetCore.WebApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 Web API made with .NET 8 (LTS) and ASP.NET Core

Status

.NET CI Quality Gate Status Build Status Codacy Badge codecov CodeFactor codebeat badge

About

Proof of Concept for a Web API made with .NET 8 (LTS) and ASP.NET Core.

Structure

Structure

Figure: Simplified, conceptual project structure and main application flow. Not all dependencies are shown.

Start

dotnet watch run --project src/Dotnet.Samples.AspNetCore.WebApi/Dotnet.Samples.AspNetCore.WebApi.csproj

Documentation (Development-only)

https://localhost:9000/swagger/index.html

API Documentation

Container

Docker Compose

This setup uses Docker Compose to build and run the app and manage a persistent SQLite database stored in a Docker volume.

Build the image

docker compose build

Start the app

docker compose up

On first run, the container copies a pre-seeded SQLite database into a persistent volume On subsequent runs, that volume is reused and the data is preserved

Stop the app

docker compose down

Optional: database reset

docker compose down -v

This removes the volume and will reinitialize the database from the built-in seed file the next time you up.

Credits

The solution has been coded using Visual Studio Code with the C# Dev Kit extension.

Terms

All trademarks, registered trademarks, service marks, product names, company names, or logos mentioned on this repository are the property of their respective owners. All usage of such terms herein is for identification purposes only and constitutes neither an endorsement nor a recommendation of those items. Furthermore, the use of such terms is intended to be for educational and informational purposes only.

Packages

 
 
 

Contributors 2

  •  
  •