SportSpot is a web application designed to manage sports-related activities. It includes various services and components such as a backend, database services, and a REST emulator.
The backend service is executed in a Docker container and can be accessed at http://localhost:8080.
The MongoDB service is executed in a Docker container and can be accessed at http://localhost:27017.
The MariaDB service is executed in a Docker container and can be reached at http://localhost:8082.
Username: root
Password: secret
-
Clone the Repository:
git clone https://github.com/PlaySkyHD/SportSpot-Backend.git cd SportSpot-Backend -
Create and start the Docker-Container:
docker-compose up --build -d
-
Open any browser and open the Swagger-UI:
http://localhost:8080/swagger
-
MongoDB
- Dev-UI: http://localhost:8081
-
MariaDB
- Dev-UI: http://localhost:8082
Username:root
Password:secret
- Dev-UI: http://localhost:8082
- DotNet 9
- Docker
Command:
dotnet test SportSpot-Test/SportSpot-Test.csproj -v dYou must execute all command with Powershell.
Command:
- Create Dummy-EnviormentVariable:
Set-Content -Path Subscription.env -Value AZURE_MAPS_SUBSCRIPTION_KEY=Dummy
- Start Docker-Container:
docker compose up --build -d
- Execute Test:
dotnet test Integration-Test/Integration-Test.csproj -v d
Command:
- Create Dummy-Environment variable:
Set-Content -Path Subscription.env -Value AZURE_MAPS_SUBSCRIPTION_KEY=Dummy
- Change Environment Variable to execute oauth tests:
(Get-Content Development.env) -replace '^OAUTH_GOOGLE_USER_INFORMATION_ENDPOINT=.*', 'OAUTH_GOOGLE_USER_INFORMATION_ENDPOINT=http://restemulator:8083/oauth' | Set-Content Development.env
- Start Docker Container:
docker compose up --build -d
- Set OAuth-Environment variable and Execute the tests:
$env:RUN_OAUTH_TEST="true" dotnet test Integration-Test/Integration-Test.csproj -v d
This project is released under the MIT License. For more information, see the `LICENSE` file.