Skip to content

Instantly share code, notes, and snippets.

@bahrmichael
Last active January 3, 2016 15:16
Show Gist options
  • Save bahrmichael/5f5cc3cdc954f5dc523d to your computer and use it in GitHub Desktop.
Save bahrmichael/5f5cc3cdc954f5dc523d to your computer and use it in GitHub Desktop.

Written for Ubuntu 14.04. Adjust accordingly.

  • Update the cache with sudo apt-get update
  • Install git with sudo apt-get install git
  • Get the source code with git clone https://github.com/bahrmichael/tabap.git
  • Install pip with sudo apt-get install python-pip. We need this to install docker-compose.
  • Install docker-compose with sudo pip install docker-compose.
  • Install the mysql client with sudo apt-get install mysql-client-5.6
  • Navigate into folder with docker-compose.yml file: cd tabap.
  • Run docker-compose up -d --force-recreate.
  • Get the database's IP with the command docker inspect db | grep IPA.
  • Navigate into the folder containing the database scripts cd db.
  • Run mysql -utab -ptap -h[IP] < init.sql to set up the database structure.
  • Run mysql -utab -ptap -h[IP] < initQuestions.sql to insert some example questions.
  • See if the website works by accessing [IP] in your browser.
  • Access the webserver at [IP]/pupil.html, fill out the answers, submit and repeat (reload the page).
  • Access the webserver at [IP]/teacher.html and review the answers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment