Giter VIP home page Giter VIP logo

actracker's Introduction

AC Tracker

A service that periodically pings AssaultCube servers, provides an API for live games and tracks past games.

The frontend is located in a separate repository here.

Features

  • Live game details
  • Past games and player scores saved to DB

Future Features

  • Search (by name, server, IP range, date range)
  • Show past games by server
  • Player ladder
  • Highlight and separate competitive games ("inters") and tournaments from public games
  • Parse clan tags out of names to show online clan members

API

All endpoints return JSON.

/servers

Returns a list of servers with active games along with the live game details.

/player/:name

Returns a list of recent games for a player name.

/player_autocomplete

Expects a query parameter q.

Returns a list of player names that start with the query.

Development

In order to run for development, create a .env file with your environment variables then run ./dev.sh.

Example .env file:

# APP
APP_PORT=3000
PINGER_COUNT=50
SLEEP_SECONDS=10
MAX_SLEEP_SECONDS=300
#GIN_MODE="release"

# DB
DB_HOST="localhost"
DB_PORT=5432
DB_USER="user"
DB_PASSWORD="password"
DB_NAME="actracker"
DB_SSLMODE="require"

# GEOIP
GEOIP_DB_PATH="/usr/share/GeoIP/GeoLite2-Country.mmdb"

actracker's People

Contributors

jasbrake avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.