Skip to content

Commit

Permalink
total rewrite: better development, deployment, features, testing, eve…
Browse files Browse the repository at this point in the history
…rything
  • Loading branch information
ccbrown committed Feb 10, 2017
1 parent a0378ac commit f1c8a8d
Show file tree
Hide file tree
Showing 49 changed files with 1,916 additions and 1,615 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!*.go
!server/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.db
gggtracker
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: go
sudo: required
services:
- docker
script:
- make docker-image
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:alpine

WORKDIR /go/src/github.com/ccbrown/gggtracker
ADD . .

RUN apk add --no-cache git && go get -t ./...
RUN go vet . && go test -v ./...
RUN go build .

ENTRYPOINT ["gggtracker"]
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
docker-image:
docker build -t ccbrown/gggtracker .

format:
gofmt -s -w .

pre-commit: format docker-image
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Welcome!
========
# Welcome! [![Build Status](https://travis-ci.org/ccbrown/gggtracker.svg?branch=master)](https://travis-ci.org/ccbrown/gggtracker)

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.
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.

### Running

If you have Go installed, you can run the server like so: `go get ./... && go run main.go`

Or if you just want to run a server using Docker: `docker run -it -p 8080:8080 ccbrown/gggtracker`

Either method will make a local instance of the tracker available at http://127.0.0.1:8080

### License / Attribution

This source is released under the MIT license (see the <i>LICENSE</i> file).

Some images used under Creative Commons 3.0 from this project: https://github.com/Templarian/WindowsIcons

This project is not affiliated with Grinding Gear Games.
35 changes: 0 additions & 35 deletions database.sql

This file was deleted.

Binary file removed favicon.xcf
Binary file not shown.
133 changes: 0 additions & 133 deletions includes/classes/SQL.class.php

This file was deleted.

29 changes: 0 additions & 29 deletions includes/common.inc.php

This file was deleted.

127 changes: 0 additions & 127 deletions includes/config.inc.php

This file was deleted.

Loading

0 comments on commit f1c8a8d

Please sign in to comment.