https://github.com/megaclan3000/megaclan3000
Our custom CS:GO stats page
https://github.com/megaclan3000/megaclan3000
counter-strike-global-offensive csgo data-visualization golang material-design statistics steam-api webapp
Last synced: 14 days ago
JSON representation
Our custom CS:GO stats page
- Host: GitHub
- URL: https://github.com/megaclan3000/megaclan3000
- Owner: megaclan3000
- License: gpl-3.0
- Created: 2020-04-19T21:46:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T02:36:50.000Z (almost 3 years ago)
- Last Synced: 2025-10-16T23:44:43.473Z (3 months ago)
- Topics: counter-strike-global-offensive, csgo, data-visualization, golang, material-design, statistics, steam-api, webapp
- Language: Go
- Homepage: https://megaclan3000.de
- Size: 76.4 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.org/megaclan3000/megaclan3000)
[](https://godoc.org/github.com/megaclan3000/megaclan3000)
[](https://goreportcard.com/report/megaclan3000/megaclan3000)
[](http://hits.dwyl.com/megaclan3000/megaclan3000)
[](https://codeclimate.com/github/megaclan3000/megaclan3000/maintainability)


[](https://codecov.io/gh/megaclan3000/megaclan3000)
[](https://codeclimate.com/github/megaclan3000/megaclan3000/test_coverage)

[](https://www.deepcode.ai/app/gh/megaclan3000/megaclan3000/_/dashboard?utm_content=gh%2Fmegaclan3000%2Fmegaclan3000)



## Suport the developers
Buy the developers a coffee or a beer if you like this application!
Your contribution will **keep the server running** ;)
[](https://ko-fi.com/B0B11UD8T)
## Deployment
### Configuration `config.json`
You will need to create a configuration with your Steam API-key and the IDs you
want to include. To get started use the provided [configuration
example](./config.json.example) and copy it over or rename it to `config.json`
### Start Postgres Database container
```bash
sudo docker run --name mega-postgres -p5432:5432 -e POSTGRES_PASSWORD=megaclan postgres
```
### Start with Docker
The application is available as docker container, which is automatically build
on new pushes to master (`latest` tag) and on releases (`vX.X` tag). It requires
a docker volume with the configuration file to be mounted in
`/var/megaclan3000/` inside the container.
To start the container pull the image and run a new container, exposing the 8080
port to the host system. Place the config file as created above inside a folder
and mount it.
```
docker pull pinpox/megaclan3000
docker run -v /path/to/local/data/folder:/var/megaclan3000 -p 8080:8080 pinpox/megaclan3000
```
You should see the container running with `docker ps` and be able to browse
`localhost:8080` to view the application.
### Start from binary
To setup the application from source, clone the repo to your server and build it using `go
build`.
### Service file
While you can just start the compiled binary manually, you will probably want to
keep it running and have it start on boot automatically. For systemd
distributions, use the following service file.
```dosini
# /etc/systemd/system/megaclan3000.service
[Unit]
Description=Megaclan3000 Homepage
After=network-online.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=www-data
WorkingDirectory=/var/www/megaclan3000
ExecStart=/var/www/megaclan3000/megaclan3000
[Install]
WantedBy=multi-user.target
```
## New Deployment
- install docker
- install docker-compose
- create nginx config