Skip to content
Snippets Groups Projects
Sorrel Harriet's avatar
8719abfc
Name Last commit Last update
..
cgi-bin
css
js
templates
README.txt
simpleServer.py
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

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)
- 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

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!
*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.