This is a simple Books Collection CRUD app built with Flask and SQLAlchemy for training on database management.
This project is a training exercise to practice database operations (Create, Read, Update, Delete) It helps users manage a book collection, including title, author, and rating.
- Add new books with title, author, and rating.
- View all books in the collection.
- Update the rating of an existing book.
- Delete a book from the collection.
- Flask: Micro web framework for Python.
- SQLAlchemy: ORM (Object Relational Mapper) for database management.
- SQLite: Lightweight database for storing book data.
- Clone this repository:
git clone https://github.com/MostafaHima/Books-Collection-CRUD-Application.git cd Books-Collection-CRUD-Application - Install the required packages:
pip install -r requirements.txt
- Run the Flask application:
python main.py
- Open your browser and navigate to:
http://127.0.0.1:5000/
main.py: Main Flask application containing routes and database models.templates/: HTML templates for rendering pages.Books_collections.db: SQLite database file.requirements.txt: List of dependencies for the project.