Update examples

This commit is contained in:
Anthony Mineo 2020-03-08 11:16:12 -04:00
parent 8050565404
commit f834c58e9b
2 changed files with 19 additions and 7 deletions

View file

@ -1,2 +1,9 @@
GO111MODULE=on
CGO_ENABLED=0
DATABASE_URL="postgres://dev:dev@db:5432/t2_stats"
POSTGRES_USER="dev"
POSTGRES_PASSWORD="dev"
FTP_HOST="127.0.0.1"
FTP_USER="user"
FTP_PW="pw"

View file

@ -2,12 +2,15 @@
**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 app` Just run the app, useful if you're making changes to the `main.go` file
- `docker-compose up db` Just run the db
- `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
@ -19,13 +22,15 @@ If you notice that there are better ways to do things, I'm all ears. :)
- 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
- Read Additional GameTypes on the fly
- Use go modules
- Update to v4 SQL driver
- Ability to download stat files from remote server via FTP
- Documentation
(Feel free to open an issue if you have any suggestions/feature requests)