Skip to content

A simple Flask web application to manage a collection of books. This app allows you to add books with their title, author, and rating, which are stored in a SQLite database.

Notifications You must be signed in to change notification settings

EgemenErin/BookCollectionApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Collection App

A simple Flask web application to manage a collection of books. This app allows you to add books with their title, author, and rating, which are stored in a SQLite database. image

Features

  • View a list of all books in the collection on the homepage.
  • Add a new book with its title, author, and rating through a form.
  • Remove a book from the database
  • Change Book's rating by accessing and editing the database
  • Data is stored persistently in a SQLite database.
  • image
  • image

image

Technologies Used

  • Python
  • Flask
  • SQLite
  • Flask-WTF (for forms)
  • Bootstrap (for styling)

Setup Instructions

  1. Clone the Repository

    git clone https://github.com/yourusername/book-collection-app.git
    cd book-collection-app
  2. Create a Virtual Environment

    python3 -m venv .venv
    source .venv/bin/activate   # On Windows use `.venv\Scripts\activate`
  3. Install Dependencies

    pip install -r requirements.txt
  4. Run the Application

    python main.py

    Open http://127.0.0.1:5000 in your browser to view the app.

Usage

  • Go to the homepage to view the list of books. If there are no books, it will show a message: "Library is empty."
  • Click on "Add New Book" to add a new book to the collection.
  • Enter the book title, author, and rating, then click "Submit".
  • The app will redirect to the homepage, displaying the updated list of books.

Project Structure

  • main.py: The main application file with Flask routes and database setup.
  • templates/: Folder containing HTML templates for rendering pages.
  • static/: Folder for static files like CSS and images.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

This app was developed by Your Name.

About

A simple Flask web application to manage a collection of books. This app allows you to add books with their title, author, and rating, which are stored in a SQLite database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published