This is an API for the FaForever ressources.
- Authentification over OAuth 2.0
- JSON oriented
To setup the development environment automatic we use Vagrant and a VM.
- Install Vagrant: http://www.vagrantup.com/downloads
- Install VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Clone this repository
- Open the command console and navigate to folder of this repository (check with
lsordirthatVagrantfileis present) - Run
vagrant up
To login the vm use vagrant ssh.
To shutdown the vm use vagrant halt.
You find the data under /vagrant in the VM.
This folder is autmatically synced from host to guest and back.
Install Python 3.4 or later. Pre-requisites are listed in requirements.txt,
install using pip install -r requirements.txt.
Take a look at the Vagrantfile if something is unclear.
A mysql database is automatically installed over Vagrant in a docker container
and connected to port 5001 to your host system.
You must only run the initial database script db-structure.sql.
To start the development server in the vagrant enviorment execute
python3 /vagrant/run.py
You can access the api over