This one shows that we can link in from python.
Make sure you have a recent python 2.7.

Do following two steps once each

* sqlite3 football.db
.quit

* python init_lite_football.py

To operate, type

node index.js

Open a browser window. Try first

http://localhost:8888/start?q=Dive

then 

http://localhost:8888/start?q=Dive+4-3

then 
http://localhost:8888/start?q=

Background:

Look at p. 17 of nodebeginner book to understand the idea


index.js -- is what you call and it ties up everything
server.js -- does basic parsing of the request and calls the router 
router.js -- depending on the call, routes to correct handler
requestHandlers.js -- does the actual work; the only thing you will change
for the most part.



---


Organization of the information in 
init_lite_football.py

Later we will want to
relate stats of defensive team play and their performance on
certain offensiveplay_defensiveplay combinations.

Depending on offensive and defensive calls, composition of team,
yards to first, yards to touchdown, get a statistical chance of up
or down.

Composition of team determines effectiveness of ground or air game.

Each person has a team that he can adjust over the course of a game.

Record overall score, budget etc.

Assignments: 

1. Include a sample of different tables having the above configurations.
Store them within tmp.py and execute.

2. Read from files into python associative arrays/dictionaries.

3. Read and set up the example in node craftsman that is application 2.

4. Transfer what you have from 2 into that format.

====

Reference:
http://zetcode.com/db/sqlitepythontutorial/

