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.ymlfile: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.sqlto set up the database structure. - Run
mysql -utab -ptap -h[IP] < initQuestions.sqlto 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.