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:

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


  1. 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.
    Screenshot of the book-list page
  2. 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.
    Screenshot of the edit-book page
  3. 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.
    Screenshot of the delete-book page
  4. 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.
    Screenshot of the new-book page
  5. 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.
    Screenshot of the JSON API response.

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:

  1. All four required webpages are included.
  2. All CRUD operations work correctly.
  3. The smallest missing ID is assigned when a new book is created.
  4. The API endpoint returns the current book data in JSON format.
  5. The complete repository is included in the ZIP file.