Skip to content

Student bookstore management system (applying Flask with sqlite for database) -- last project in the advanced python course with GSG

Notifications You must be signed in to change notification settings

BaraSedih11/Bookstore_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



GitHub repo size GitHub repo file count (file type) Python Version Pip Version GitHub last commit (branch) Version Contributors GitHub pull requests


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.

Installation

  1. Clone the repository:
git clone https://github.com/BaraSedih11/Bookstore_Flask.git
  1. Navigate to the project directory:
cd Bookstore_Flask
  1. 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
  1. Run the application:
python app.py

The application will be accessible at 'http://127.0.0.1:5000/' in your web browser.

Features

  • 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.

Technologies Used

  • 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.

Documentation

For detailed documentation and user guides, please refer to the Documentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

Student bookstore management system (applying Flask with sqlite for database) -- last project in the advanced python course with GSG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages