Commit 9fbc97e3 authored by Sorrel Harriet's avatar Sorrel Harriet

updating readme

parent 1036ac20
Live Demo
---------
A live deployment of this app can be viewed at:
http://doc.gold.ac.uk/www/111/lab-exercises/resit-app/cgi-bin/splash.py?page=home
http://www.doc.gold.ac.uk/usr/111/cgi-bin/splash.py
Configuration
-------------
- Clone this repo (or pull latest changes if you already did that at the start of term 1)
- Create a blank MySQL database (CLUE: see ``Intro to MySQL'' in the Lab Exercises Wiki)
- Create a blank MySQL database (CLUE: see ``Intro to MySQL'' in the Lab Exercises Wiki. You'll need to install mysql-server wherever you are developing this app)
- Look at the application code to figure out what tables need to be created, and what fields they should have
- Create the tables and insert some dummy data!
- Hook the database up to the application code (CLUE: edit cgi-bin/config.py)
- Deploy on a Virtual Server
- Deploy on a Virtual Server (TIP: You'll need both mysql.connector installed on your VS. Try ``sudo apt-get install python3-mysql.connector'')
Other notes
-----------
You can only play the game as player 1 because, as yet, no login system has been implemented.
It is supposed here that a login script would pass player_id to other views as a GET parameter.
You don't *have* to do it like that...in fact, you're free to edit any of this application code as you see fit!
It will probably be easiest for you to develop this app on your VS, cloning/pulling from lab-exercises.git there.
This tutorial may help you get mysql installed if it isn't already: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04
You're free to edit any of the application code as you see fit!
*HOWEVER* it is probably not in your interests to edit hangman.js or hangman.css, since you aren't being credited for client-side scripting.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment