First round project that calculates elo for esports players. By Filip Vidakovic [email protected]
Ensure you have the following installed on your system:
- .NET SDK: Version 8.0 or later
Download from Microsoft .NET Download Page. - IDE/Text Editor: Visual Studio, Visual Studio Code, or any other editor supporting .NET Core development.
- Postman or Browser: To interact with the APIs (optional).
Follow these steps to build and run the application locally:
git clone https://github.com/cofi420/5DanaUOblacima2024.git
cd 5DanaUOblacima2024/
Use the following command to restore NuGet packages: dotnet restore
Build the project to ensure everything compiles correctly:
dotnet build
The project includes multiple profiles defined in the launchSettings.json file. You can run the application in different configurations.
To run the application with HTTPS, execute:
dotnet run --launch-profile https
Application URL: https://localhost:443 or http://localhost:8080 Swagger UI: https://localhost:443/swagger
To run the application without HTTPS, execute: !IMPORTANT: Run this one for correct port and http protocol for postman tests
dotnet run --launch-profile http
Application URL: http://localhost:8080 Swagger UI: http://localhost:8080/swagger
If you're using Visual Studio, you can select the IIS Express profile from the debug dropdown and run the application directly.
The API exposes its Swagger UI for easier testing and documentation.
After starting the application, navigate to the launchUrl defined in the selected profile. For example:
http://localhost:8080/swagger https://localhost:443/swagger Use the Swagger UI to explore and test the endpoints.
The ASPNETCORE_ENVIRONMENT variable in launchSettings.json is set to Development by default. You can change it to other environments (e.g., Production) if required.
Ensure the ports defined in applicationUrl are not already in use. Change the ports in launchSettings.json if needed.
Trust the development certificate by running:
dotnet dev-certs https --trust
Run dotnet restore to fetch any missing dependencies.