- All the code required to get started
- Clone this repo to your local machine using https://github.com/Social-projects-Rivne/YPS-Backend
-
Add DB and updated
add-migration "Your migration" update-database -
Run project in VS
- Press Ctrl + F5
-
Run project in console
dotnet run dotnet build
.\YPS-Backend\src\YPS.WebUI\appsettings.json
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"YPSDataBase": "put_connection_string_here"
},
"ApiKey": "put_apikey_here"
}Display all warnings in the console.
If you want more information about logging , go to
https://docs.microsoft.com/uk-ua/aspnet/core/fundamentals/logging/?view=aspnetcore-3.1.
Is a special configuration that accepts a semicolon-delimited list of host names without port numbers
If you want more information about allowed hosts , go to
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.2#host-filtering.
This is to enable you to interact with the database.
If you want more information about connection string , go to
https://docs.microsoft.com/uk-ua/aspnet/core/tutorials/razor-pages/sql?view=aspnetcore-3.1&tabs=visual-studio
For protect your API with API Keys
If you want more information about api key , go to
https://josefottosson.se/asp-net-core-protect-your-api-with-api-keys
You can see all samples and how to use all requests on https://hostname/swagger/index.html.
If you want more information about swagger , go to https://swagger.io/.