A parser that ingests generated Tribes 2 server stats from DarkTiger's stat script
Find a file
dependabot[bot] b47e06073e
Bump qs from 6.5.2 to 6.5.3 in /app/api
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 16:14:55 +00:00
app Bump qs from 6.5.2 to 6.5.3 in /app/api 2022-12-08 16:14:55 +00:00
build * [pghero] New Service: Add pghero for dev env tooling 2021-04-30 21:17:37 -04:00
docs init 2020-02-06 16:26:32 -05:00
.env.example Add additional vars that were previously set in docker-compose 2021-04-28 19:47:41 -04:00
.envrc Refactor build steps 2020-03-07 11:01:21 -05:00
.gitignore ignore notes 2020-08-17 17:08:31 -04:00
docker-compose.override.yml Disable PGHero service 2021-04-30 22:02:11 -04:00
docker-compose.yml * [api] v0.0.25 -- Adds query caching support 2021-09-27 12:13:05 -04:00
LICENSE.txt init 2020-02-06 16:26:32 -05:00
README.md Update examples 2020-03-08 11:16:12 -04:00
tsconfig.json init nest (wip) 2020-08-22 10:19:50 -04:00

Parser for DarkTiger's T2 Server Stats

This is very much still a work in progress. The motivation behind this is to get more familiar with Go. If you notice that there are better ways to do things, I'm all ears. :) Like all things, everything could be improved.

Run

- `docker-compose up` Runs the whole stack in unison
- `docker-compose up parser` Just run the app, useful if you're makin code changes
- `docker-compose up db` Just run the db

Notes

- When you first run the stack, Postgres will generate the DB and all the necessary tables by running `./build/postgres/docker-entrypoint-initdb.d/backup/t2_stats.sql`. Because the Go app can run before the DB has a chance to finish setting up, the parser will exit prematurely. Once the DB has been properly setup, running the app again will parse and insert the data without issue.
- A persistent volume for the DB data is set.

Features

- Parses generated stat files into json and insert them into a database (postgres)
- Keeps records in sync to prevent duped entries
- Creates/Updates player records to game records
- Supports multiple game types
- Scheduled FTP stat file retreval from a remote T2 game server

Features in que

- Update to v4 SQL driver
- Documentation 

(Feel free to open an issue if you have any suggestions/feature requests)