Skip to content

Commit f1c8a8d

Browse files
committed
total rewrite: better development, deployment, features, testing, everything
1 parent a0378ac commit f1c8a8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1916
-1615
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!*.go
3+
!server/*

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.db
2+
gggtracker

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: go
2+
sudo: required
3+
services:
4+
- docker
5+
script:
6+
- make docker-image

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM golang:alpine
2+
3+
WORKDIR /go/src/github.com/ccbrown/gggtracker
4+
ADD . .
5+
6+
RUN apk add --no-cache git && go get -t ./...
7+
RUN go vet . && go test -v ./...
8+
RUN go build .
9+
10+
ENTRYPOINT ["gggtracker"]

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
docker-image:
2+
docker build -t ccbrown/gggtracker .
3+
4+
format:
5+
gofmt -s -w .
6+
7+
pre-commit: format docker-image

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
Welcome!
2-
========
1+
# Welcome! [![Build Status](https://travis-ci.org/ccbrown/gggtracker.svg?branch=master)](https://travis-ci.org/ccbrown/gggtracker)
32

4-
This is the repository for <a href="http://gggtracker.com" target="_blank">gggtracker.com</a>. If there's something you think the site is missing, please either a.) open an issue to request the feature or b.) develop the feature yourself and put in a pull request. Pull requests should be written in the same style as the existing code base and any new features should be implemented in a way that's as concise and unintrusive as possible.
3+
This is the repository for <a href="https://gggtracker.com" target="_blank">gggtracker.com</a>. If there's something you think the site is missing, please either a.) open an issue to request the feature or b.) develop the feature yourself and put in a pull request. Pull requests should be written in the same style as the existing code base and any new features should be implemented in a way that's as concise and unintrusive as possible. Before creating any pull requests, please run `make pre-commit` to format and test your changes.
4+
5+
### Running
6+
7+
If you have Go installed, you can run the server like so: `go get ./... && go run main.go`
8+
9+
Or if you just want to run a server using Docker: `docker run -it -p 8080:8080 ccbrown/gggtracker`
10+
11+
Either method will make a local instance of the tracker available at http://127.0.0.1:8080
12+
13+
### License / Attribution
514

615
This source is released under the MIT license (see the <i>LICENSE</i> file).
16+
17+
Some images used under Creative Commons 3.0 from this project: https://github.com/Templarian/WindowsIcons
18+
19+
This project is not affiliated with Grinding Gear Games.

database.sql

Lines changed: 0 additions & 35 deletions
This file was deleted.

favicon.xcf

-2.48 KB
Binary file not shown.

includes/classes/SQL.class.php

Lines changed: 0 additions & 133 deletions
This file was deleted.

includes/common.inc.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)