The server provides an appropriate web api, which allows renting items. You can browse the api through Swagger UI.
Build with:
- .NET 5.0
- ASP.NET Core
- Entity Framework
- Swagger UI
- Microsoft SQL Server
- Visual Studio 2019
- Visual Studio Code
-
Create file appsettings.json with the same settings as in appsettings.defualt.json in RentalApp.WebApi folder.
-
Set in appsetting.json settings:
"RentalAppCS"
- connection string for MSQL database"Key"
- key for JWT Token"TokenLifeTime"
- life time for JWT Token
- To build the server in folder scripts run PowerShell script:
- To run the server in folder scripts run PowerShell script:
Application will be listen on:
http://localhost:5000
or:
https://localhost:5001
- Browse api using Swagger UI
http://localhost:5000/swagger/index.html
or:
https://localhost:5001/swagger/index.html