Skip to content
Snippets Groups Projects
Simran Grewal's avatar
Simran Grewal authored
003a4095
Name Last commit Last update
cgi-bin
dump
README.md
myserve_cat.py
mysimpleServer.py

sgrew002project

Lab 9: Template README

Here is a template README file you could include in your final app submission, so that your marker knows exactly where to look for evidence of your learning.

Doing this is another way of showing that you understand the code you wrote!

Note: They will also be looking at your commit history, to see how much of the app you wrote from scratch.

***NOTE TO MARKER: PLEASE IGNORE THE myserve_cat.py file outside the cgi-bin, it is empty. The actual file is in the cgi-bin folder!!

Evidence

Checklist point Evidence (filename(s) and line number(s) and/or short desciption)
write a simple server script which is capable of serving a web application written in Python mysimpleServer.py
retrieve one or more documents or rows from one or more collections or tables In the cgi-bin folder in the myserve_cat.py file on line 45
iterate over documents returned in a results cursor object In the cgi-bin folder in the myserve_cat.py file on line 37
filter and/or sort documents in the result set based on some simple criteria In the cgi-bin in the myserve_cat.py file on line 45
perform more advanced filtering and/or aggregation operations in a database query In the cgi-bin folder in the myserve_cat.py file on line 30
handle a POST request made via an HTML form in a server-side script mysimpleServer.py on line 19
demonstrate consideration for Separation of Concerns through the modularisation (separation) of related code in the cgi-bin, in utils.py on line 12
demonstrate an awareness of how related data is modelled in the database in cgi-bin, in myserve_cat.py on line 6,45,59,81 and 87
design and implement an original functional feature in a Python web app In the cgi-bin folder in the myserve_cat.py file on line 45 and line 10 in myutils.py
other relevant extension of the taught material (if applicable) In the cgi-bin folder in the myserve_cat.py file on line 48-52,62,63
make a Python script self-executable in mysimpleServer.py on line 4-10
utilise a range of Python's built-in functions and methods In the cgi-bin folder in the myserve_cat.py file on line 6, 7,9 and 10 & in mysimpleServer.py line 13 and 14
make use of user-defined functions In the cgi-bin folder in the myserve_cat.py file on line 3, 15
design and implement reuseable functions In the cgi-bin folder in the myserve_cat.py file on line 48-52,62,63
write readable, well-presented code Everywhere