Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit



CISC 315 Final Project


Project Description

 

It’s time to make an “app”! This project will help you apply the knowledge and skills you           learned during class in a creative way.  In this project you will brainstorm an idea for an            “app”/website, create the database that will hold the data, and create a webserver in Python to send data from the database to a browser. There will be a REPLIT project already set up for you as a starting template:https://replit.com/team/CISC315-F21/Final-Project-Web-Version . There are three main parts to this project:

1.   Database Design (10 Points). Submit paper and diagram to Brightspace.

2.   Creating the database in SQL (10 Points) . Submit in REPLIT link above.

3.   Creating a webserver (10 Points) . Submit in REPLIT link above.

 

During the last 3 weeks of the semester, I will be exclusively teaching how to use Python to    create a webserver and interact with a SQLITE database. However, I have already taught you everything you need to know to do Parts 1 and 2 above.

Project Breakdown

 

1.   Database Design (10 Points)

1.   Do the 8-step process of creating a database as described in Lecture 2, e.g., purpose, information, tables, columns, primary keys, relationships, refine,   normalize. There must be at least 4 tables in your database.

2.   Write a paper about how you applied this process for your app (Min 1 page- Max

2 pages).

3.   Create an Entity Relationship Diagram and attach it to the end of your paper. Don’t forget about the CROWS foot notation.

2.   Create your database using SQL statements! All of these statements will be in one SQL file called `myapp/schema.sql` in your REPLIT project. (10 Points)

1.   There should be at least 4 tables

2.   You should insert at least 3 items for each table

3.   You should make use of foreign key and primary key relationships when creating a table.

3.   Create your web server in Python using the provided REPLIT project as a template.  At a minimum you will need to (10 Points)

1.   Modify `myapp/routes.py` file to make at least 4 different routes

i.   The first route, which is the root route (/), should return a webpage that just shows links to all the main routes available.


ii.   The remaining 3 routes should be related to ONE table. For example, using the the Owner table from the provided template.

1.   You should have a route that shows all the owners (/owner)

2.   You should have a route to create new owners (/owner/create)

3.   You should have a route that allows you to view/edit details of a specific owner (e.g., /owner/1 will modify the owner with a          primary key of 1)

iii.   You can make more routes for other tables but it is not required.

2.   Modify/Create new HTML template files inside the `myapp/templates` folder that correspond to the routes you created above.

i.   Nothing needs to be styled or look nice. It just needs to be functional.

3.   Modify the `db.py` functions such that they execute the correct SQL queries to get data from YOUR database.

 

 

 

Examples

 

Below are some example ideas for an app!

 

•    Recipes: Keeps track of recipes, ingredients, and people who created them

•    Workouts: Muscle groups, exercises, class sign ups

•    Music Player: Artists, bands, tracks, likes, playlists

•    Animal Adoptions: breeds, animals, pets, requesting an appointment

 

 

 

Helpful Links

https://nickymarino.com/2021/04/13/create-python-web-apps-with-flask-and-replit/  https://www.tutorialspoint.com/sqlite/sqlite_python.htm