karlthepagan / Screeps-LoAN

Alliance Tracking Website for Screeps

Home Page:http://www.leagueofautomatednations.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

  • Postgres
  • Python 3.x

Setup

Update the info in settings.example

cp settings.example settings
nano settings # add api settings.
pip install -r requirements.txt
export SETTINGS="`pwd`/settings"
export FLASK_APP=screeps_loan/screeps_loan.py
python db/manage.py version_control
python db/manage.py upgrade
flask run
flask import_users  #This actually will run map stats to get all users on the map
flask import_alliances #Importing alliance from alliances.js file

Update Data

Bash wrapper scripts are provided to make updating easier.

./bin/import_users
./bin/import_alliances

Testing with Vagrant

  1. Install vagrant.
  2. Copy provisioning/settings to project root and add your screeps api credentials.
  3. Run vagrant up in the project root.
  4. Wait.
  5. Once complete open http://127.0.0.1:8080/ in a browser.

About

Alliance Tracking Website for Screeps

http://www.leagueofautomatednations.com/


Languages

Language:JavaScript 85.3%Language:Python 7.3%Language:HTML 4.6%Language:CSS 1.3%Language:Shell 0.9%Language:Nginx 0.5%Language:Makefile 0.1%