This is a Flask-based web application for managing a bookstore. Users can sign up, log in, browse books, add books to their shopping cart, and place orders. Managers can add, update, and delete books from the inventory.
- Clone the repository:
git clone https://github.com/BaraSedih11/Bookstore_Flask.git
- Navigate to the project directory:
cd Bookstore_Flask
- Install the dependencies:
from datetime import datetime
from flask import Flask, jsonify, request, session
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from config import Config
import os
from marshmallow import Schema, fields
from werkzeug.security import generate_password_hash
from sqlalchemy.orm import sessionmaker
- Run the application:
python app.py
The application will be accessible at 'http://127.0.0.1:5000/' in your web browser.
- User Authentication: Users can sign up, log in, and log out. Passwords are hashed for security.
- Book Management: Managers can add, update, and delete books from the inventory.
- Shopping Cart: Users can add books to their shopping cart and view their cart contents.
- Order Placement: Users can place orders for books in their shopping cart.
- Order History: Users can view their order history and total sales.
- Flask: Web framework for building the application.
- SQLAlchemy: Object-Relational Mapping (ORM) library for database interactions.
- Marshmallow: Library for object serialization and deserialization.
- SQLite: Lightweight relational database management system.
For detailed documentation and user guides, please refer to the Documentation.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.