Create a website on your machine

Assignment Help Database Management System
Reference no: EM131295928

Purpose

- To give you exposure to
? creating a program that
- connects to a database
- writes, reads and updates the data in the database
? writing the interface between a database and a user
? creating a client/server program that runs on the internet, serves up a page that runs on the client side (the users browser) and
also connects to a back end database on the server side (your virtual machine)

Instructions

Using the following database:

https://owl.uwo.ca/access/content/group/c345a70e-0aae-48d4-8b8e- 5d18c599ee54/Other/MovieTheatre.sql

(also linked in the "Assignment 3 DB" page on the left) and your virtual machine, Python/Flask and MySQL, create a website on your machine that allows a theatre company to manage the viewing of it's movie screenings.

There will be two parts to the assignment:

Part 1: The Back End:

The staff who work at a theatre must be able to:
- Movies
? add movies
? delete movies
? modify movies
? list all movies and all attributes (except genre) sorted alphabetically by movie name
- Genres:
? add a genre to a movie
? delete a genre from a movie
? list all genres and the movie the genre is for sorted alphabetically by genre (include the movie name only)
- Rooms:
? add rooms
? delete rooms
? modify rooms
? list the rooms and all attributes
- Showings
? add showings
? delete showings
? modify showings
? list all the showings and all attributes sorted by date of the showing
- Customer
? add customers
? delete customers
? modify customers
? list all the customers and all attributes sorted by last name
- Attend
? list all the paid for attendances and all attributes,
? along with customer first name and last name
? along with showing and showing date/time
? along with movie and movie title
? sorted by rating

Part 2: The Front End:
The customers of the theatre must be able to:
- allow a customer to search all the showings by searching (give a warning if there are no seats left for a showing):
? a selected genre (use a dropdown input box from all existing genres in the database)
? a range of dates (use two dropdowns to select a start and end date from all existing dates in the database)
? a showing that still has seats available (checkbox)
? a movie title (free-form input box)

? (Hint: How many seats are left are determined by {room capacity for a showing} - {the total tickets purchased for that showing})
- allow a customer to attend a showing
? select their name and any showing, and "buy" a ticket for it (ie. insert a new entry in the Attend table).
- allow a customer to rate a showing
? select their name and a showing they attended, and give a rating (a number of stars between 1 and 5) (ie. update an existing entry in the Attend table)
- allow a customer to select their name and see all the movie titles and ratings for the movies he/she has viewed
- allow a customer to select their name and see his/her profile (all the info about the customer)

Part 3: SQL Injection attack:
- Demonstrate a vulnerable page by not using parameterized queries (also known as prepared statements).
? Build a second page that does not use parameterized queries. When a customer is searching for a movie, it should be possible to use a SQL injection attack to view ALL customers at once in the database.

Part 4: Bonus (up to +10%):
- Movie Posters:
? Modify the database to allow a staff member to add a movie poster image that is added when the movie is added (it will never be updated or added after the fact). The image should somehow be displayed. Assume that all the poster images will be 240 pixels by 360 pixels.
? When the customer views a list of showings based on the movie title, display the movie poster (if one was uploaded) to the user.
- Design
? TAs will grant an extra 5% if your application has some kind of a modern layout and design. Using Bootstrap (see links above) is a good option. There are other template types out there or you can design one from scratch.

Reference no: EM131295928

Questions Cloud

Describe how you developed the balance sheet : Imagine you are a manager of a small health care facility and in charge of developing an annual balance sheet to help your stakeholders understand the organization's financial standing.
Research paper-presentation on what application : Write a research paper/presentation on what application and web security are, and recent attacks that were mentioned in the last 6 months. Present your views and experts' views, if available on the breaches referenced in your paper/presentation.
Describe the industry in which the company operates : Describe the industry in which the company operates. What is the company's stated strategy? Is it a winning strategy? How does the company's mission statement compare to those of its competitors?
Assignment-direct manipulation : Early computer systems relied on command line interfaces to perform all actions. Today, the majority of systems use direct manipulation rather than a command line interface. The goal of designing a direct manipulation interface is to make use of t..
Create a website on your machine : Demonstrate a vulnerable page by not using parameterized queries (also known as prepared statements) and build a second page that does not use parameterized queries.
Large telecommunications company : You are the lead trainer for the software development team at a large telecommunications company. You have been tasked with preparing a training document that explains the principles of polymorphism, inheritance, and encapsulation.
What causes a structure to fail during an earthquake : What causes a structure to fail during an earthquake (150 words min)? What are the types of loads that a structure needs to resist to in order to be earthquake proof?
Undirected graph with weighted edges : Suppose you have an undirected graph with weighted edges, and perform a depth first search, such that the edges going out of each vertex are always explored in order by weight, smallest first.
What change in legal policy did the norris- laguardia act : What change in legal policy did the Norris- Laguardia Act of 1932 mark for organized labor? Explain the concept of an employee lockout. Does such an action shutdown the contractor's operations?

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd