Project #3: CRUD Web App with Flask (No Database)
Due: Thu, 19 November 2026
80 pts, 8% of total grade.
Specification
Create a data-driven web application in Flask that performs the four basic CRUD operations: Create, Read, Update, and Delete.
You will not use a back-end database. Instead, you will simulate a database using a list of dictionaries.
This program may be completed with a partner.
To get started, clone and update the provided template project:
- Flask CRUD template repository
- The tutorial Flask.pptx, available on Canvas, may also be helpful.
Initial Data
Your application must begin with the following list of books, where each book is represented as a dictionary:
books = [ {'title': 'Software Engineering', 'id': 1}, {'title': 'Algorithm Design', 'id': 2}, {'title': 'Python', 'id': 3} ]Requirements
- showBook.html
- When crud.py is executed, the browser must render showBook.html as the default page.
- List all available books.
- Provide an Edit option for each book.
- Provide a Delete option for each book.
![]()
- editBook.html
- Direct the user to this page after the user selects the Edit option for a book on showBook.html.
- When the user enters and submits a new title, replace the existing title in the corresponding book dictionary.
![]()
- deleteBook.html
- Direct the user to this page after the user selects the Delete option for a book on showBook.html.
- When the user clicks the Delete button, remove the corresponding dictionary, including its title and ID, from the list of available books.
![]()
- newBook.html
- The user must be able to navigate to this page using:
http://127.0.0.1:5000/book/new- When the user enters and submits a title, add a new dictionary to the list of available books.
- The new dictionary must include the entered title and the next available ID.
- Check for missing IDs and assign the smallest missing ID to the new book.
![]()
- JSON API Endpoint
- Implement an API endpoint that returns the current book data in JSON format.
- The returned data must reflect books that have been created, edited, or deleted while the application is running.
![]()
Cooperation Points
- The content of this project is worth 70 points. The remaining 10 points are Cooperation points.
- During the submission process, each student will independently submit an evaluation form separately from the project submission.
- In this form, you will assign 10 points to your partner based on their contribution to the project.
- Your cooperation score is the cooperation points assigned to you by your partner.
- You cannot give points to yourself.
- You are free to discuss the point assignments with your partner and collectively plan a fair distribution.
- If you do not submit your evaluation form, you will receive 0 cooperation points.
- If you receives a low cooperation score, further action may be taken.
Submission
Zip your complete repository and upload the ZIP file to the appropriate Canvas assignment.
Before submitting, verify that:
- All four required webpages are included.
- All CRUD operations work correctly.
- The smallest missing ID is assigned when a new book is created.
- The API endpoint returns the current book data in JSON format.
- The complete repository is included in the ZIP file.