Skip to content

Replay API

Replay API

Welcome to the Replay API project! This is the main project of our organization, providing robust and scalable solutions for managing and analyzing replay data from various games.

Overview

The Replay API is designed to handle large volumes of replay data, offering features such as:

  • Replay Parsing: Efficiently parse and process replay files from different games.
  • Data Storage: Store parsed data in a structured format using MongoDB.
  • Search and Query: Powerful search and query capabilities to retrieve specific data points.
  • Event Handling: Handle various game events and generate meaningful insights.
  • Machine Learning Integration: Evaluate player talent and performance using machine learning models.

Features

Replay Parsing

The Replay API supports parsing replay files from multiple games, extracting valuable data such as player actions, game events, and match statistics.

Data Storage

Parsed data is stored in MongoDB, allowing for efficient retrieval and analysis. The repository pattern is used to abstract database operations.

Search and Query

The API provides advanced search and query capabilities, enabling users to filter and retrieve specific data points based on various criteria.

Event Handling

The API handles different game events, such as match start, round end, and clutch situations, generating insights and statistics for each event.

Machine Learning Integration

The API integrates with machine learning models to evaluate player talent and performance, providing scores and insights based on in-game actions and statistics.

Getting Started

Prerequisites

  • Go 1.16+ (Recommended using 1.23+)
  • MongoDB

Installation

  1. Clone the repository:

    git clone https://github.com/replay-api/replay-api.git
    cd replay-api
  2. Install dependencies:

    go mod tidy
  3. Set up MongoDB:

    • Ensure MongoDB is running and accessible.
    • Update the MongoDB connection settings in the configuration file.

Running the API

  1. Build the project:

    go build -o replay-api
  2. Run the API:

    ./replay-api

Testing

Run the tests using the following command:

go test ./...

Using Docker

We recommend using Docker to run the Replay API for a consistent and isolated environment. You can build and run the Docker container using the following command:

make docker

Docker Compose Setup

To set up the Replay API using Docker Compose, follow these steps:

  1. Copy the docker-compose.example.yml file to docker-compose.yml:

    cp docker-compose.example.yml docker-compose.yml
  2. Create a .env file and set the necessary environment variables:

    cp .env.example .env
    # Edit the .env file to set your environment variables
  3. Start the services using Docker Compose:

    docker-compose up

Contributing

We welcome contributions from the community! Please read our Contributing Guide to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or inquiries, please contact us at [email protected].


Thank you for using the Replay API! We hope it helps you manage and analyze your replay data effectively.

Popular repositories Loading

  1. replay-api replay-api Public

    Go Backend for LeetGaming.pro

    Go 1

  2. replay-ux replay-ux Public

  3. activity-feed-api activity-feed-api Public

    C#

  4. .github .github Public

Repositories

Showing 4 of 4 repositories
  • replay-api Public

    Go Backend for LeetGaming.pro

    replay-api/replay-api’s past year of commit activity
    Go 1 0 1 (1 issue needs help) 2 Updated Mar 31, 2025
  • .github Public
    replay-api/.github’s past year of commit activity
    0 0 0 0 Updated Feb 5, 2025
  • replay-api/activity-feed-api’s past year of commit activity
    C# 0 0 0 0 Updated Dec 3, 2024
  • replay-ux Public
    replay-api/replay-ux’s past year of commit activity
    0 0 0 0 Updated Oct 10, 2024

Top languages

Loading…

Most used topics

Loading…