This is a simple Flask web application for managing a collection of books.
- Python 3.12
- Flask
- Flask-SQLAlchemy
- SQLite
-
Clone this repository.
-
Install the required packages using pip:
pip install flask flask_sqlalchemy
-
Run the Flask application:
python main.py
- Navigate to http://localhost:5000/ in your web browser to view the list of books.
- You can add, edit, and delete books using the provided functionality.
main.py: Contains the main Flask application code.templates/: Contains HTML templates for the application views.books-collection.db: SQLite database file for storing book data.
- View all books: Displays a list of all books in the collection.
- Add a book: Allows users to add a new book to the collection.
- Edit a book: Enables users to edit the details of an existing book.
- Delete a book: Allows users to remove a book from the collection.