Source code for rankedftw.com, a StarCraft II site.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aid
common
contrib
dist/travis
lib
main
pg_test
site
src
tasks
test
.eslintrc
.gitignore
.gitmodules
.travis.yml
LICENSE
Makefile
README.rst
local.mk.sample
local.py.sample
package.json
requirements.txt
webpack.config.js

README.rst

https://travis-ci.org/andersroos/rankedftw.svg?branch=master

Ranked For Teh Win

This is the source code for the website http://www.rankedftw.com, a StarCraft II site.

Building

Major Dependencies

  • Postgresql and libpq
  • Python 3
  • Python libs (requirements.txt)
  • Boost
  • GCC
  • JsonCpp
  • GNU Make
  • Nodejs
  • Javascript libs (package.json)

For a complete and up to date list of dependecies and example on install steps on Ubuntu 14.04 see .travis.yml.

Basic Build Steps

Install Postgresql, libpq, python3, boost, gcc, libjsoncpp and make, see also .travis.yml.

Then install python and javascript libs:

make init

Then compile:

make build -j

Running Tests

Create postgres user that is allowed to create db (needed for tests):

sudo -u postgres createuser $USER
sudo -u postgres psql -c "alter user $USER with createdb;"

Then to run tests:

make test

Running Development Site

First build the system, see above.

Then create databsae:

sudo -u postgres createdb rankedftw
make migrate-db

To run the development http server on localhost:8000, the ladder server (./lib/server) and webpack watch:

make run

A few things will work (not crash) without data but most things wont.

Gettting Data

If you get this far and want a sample db from the world please contact me here or at rankedftw.com@gmail.com.