This repository contains the server-side components for the dsstats project, including the API, web interface, and database migrations.
The solution is divided into several projects:
- dsstats.api: The main ASP.NET Core web API that serves data to the clients.
- dsstats.web: A web application that provides a user interface for the dsstats project.
- dsstats.db: Contains the Entity Framework Core database context and models.
- dsstats.dbServices: Contains services for accessing and manipulating the database.
- dsstats.apiServices: Contains services used by the API.
- dsstats.migrations.mysql: Contains the database migrations for MySQL.
- dsstats.migrations.postgresql: Contains the database migrations for PostgreSQL.
- dsstats.migrations.sqlite: Contains the database migrations for SQLite.
- dsstats.ratings: Contains the logic for calculating player ratings.
- sc2arcade.crawler: A service for crawling SC2 arcade data.
- .NET 10 SDK
- MySQL 8 (a Docker setup is available in the
dockerfolder for use with WSL) - [Optional] Other database providers like PostgreSQL or SQLite.
-
Clone the repository:
git clone https://github.com/ipax77/dsstats10.git
-
Navigate to the server directory:
cd dsstats10/src/server -
Set up the database:
- Start the MySQL Docker container:
cd docker docker-compose up -d
- Start the MySQL Docker container:
-
Run the API:
cd ../dsstats.api dotnet run -
Run the web project:
cd ../dsstats.web dotnet run
Contributions are welcome! Please feel free to open an issue or submit a pull request.
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.