- ASP.Net core web API
- PostgreSQL
Also, I used DB first design.
- Create appsettings.json file
"Logging": {...},
"AllowedHosts": "...",
"ConnectionStrings": {
"TicketsDatabase": "postgreSQL connection string"
}
}
- Install dotnet ef tool
dotnet tool install --global dotnet-ef
- Apply migrations to the database
dotnet ef database update
- Run project
dotnet run urls="https://localhost:8000"
You can open Swagger UI at https://localhost:8000/swagger