Skip to content

Social-projects-Rivne/YPS-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  • All the code required to get started

Clone

Setup

  • 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

Configuration

There is the configuration file on this path

.\YPS-Backend\src\YPS.WebUI\appsettings.json

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "YPSDataBase": "put_connection_string_here"
  },
  "ApiKey": "put_apikey_here"
}
  • Logging

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.

  • AllowedHosts

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.

  • ConnectionStrings

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

  • ApiKey

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

Api

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/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7