Skip to content

war-on-ice/woi-web

Repository files navigation

woi-web

WAR On Ice - Web

Compile Instructions

  1. Install vagrant and VirtualBox (or your favorite VM software)
  2. Spin up vagrant instance from Vagrantfile vagrant up
  3. SSH into vagrant box: vagrant ssh
  4. Create a virtual environment for the project (optional)
  5. Install R a. apt-get install liblzma-dev b. Add rstudio's repository to your machine's sources list to ensure you get the latest version of R (http://askubuntu.com/questions/431380/how-to-install-upgrade-r-base-to-3-02) c. apt-get install r-base d. apt-get install r-base-dev
  6. Install the requirements for this project pip install -r required.txt
  7. You will need to create a file cred.py in the main directory. See below.
  8. Run the flask file - python run.py
  9. Connect to localhost:5000 to see the site running!

Create cred.py

To the run application, you need to specify your database configuration. Create a file cred.py in the main application directory. This file should contain the following:

## MYSQL DB Credentials
mysql_username = "username"
mysql_password = "password"
mysql_server = "servername"
mysql_dbname = "dbname"