From ffb308dc524746b9c82610f9303ec549c737b2b0 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 31 Aug 2026 12:59:44 +0200 Subject: [PATCH] added build instructions --- readme.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3a8b8b6..7bae6d0 100644 --- a/readme.md +++ b/readme.md @@ -2,4 +2,12 @@ Genutze Ressourcen zum Recherchieren 1. [Microsoft ASP.NET Core Doku](https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-10.0&tabs=visual-studio-code) -2. [ASP.NET mit postgres tutorial](https://dev.to/olymahmud/building-a-crud-api-with-aspnet-core-web-api-and-postgresql-p5f) \ No newline at end of file +2. [ASP.NET mit postgres tutorial](https://dev.to/olymahmud/building-a-crud-api-with-aspnet-core-web-api-and-postgresql-p5f) + +# Projekt starten (Linux/Docker) + +1. `docker run --name postgres -e POSTGRES_PASSWORD=postgres --network host -d postgres` +2. `psql -U postgres -d postgres -h localhost -p 5432 -f db/schema.sql` +3. `cd api` +4. `dotnet run` +5. http://localhost:5007/swagger im Browser aufrufen \ No newline at end of file