eBookstore

A web-based application that allows users to browse, search, and purchase books online. The goal is to provide a convenient and efficient way for users to buy books online while giving the bookstore a digital platform to expand their reach and manage their inventory.

homepage

Customer

  • Secure login/logout
  • Search functionalities
  • Book details
  • Recommended books
  • Card checking
  • Cart
  • Checkout
  • View and update profile
  • Secure online payment with Momo API
  • Fully responsive

Manager

  • Secure login/logout
  • Dashboard with statistics
  • View and update profile
  • Manage books
  • Manage orders
  • Manage inventory

Screenshots

Customer screenshot

screenshot screenshot

screenshot

screenshot screenshot

screenshot screenshot

screenshot

screenshot screenshot
Manager screenshot

screenshot

screenshot

screenshot screenshot

screenshot

screenshot

Clone project

git clone https://github.com/binh234/eBookstore.git

cd  eBookstore

Install libraries

pip install -r requirements.txt

Prepare database

Setting up database environemnt

Set an environment variable called DATABASE_URL to store your connection string, for example:

  • PostgreSQL: postgresql://username:password@host:port/database_name
  • MySQL: mysql://username:password@host:port/database_name

Migrate data

# Inside customer directory
python manage.py migrate

Load data

# Inside customer directory
python manage.py loaddata ../db.json

Customer app development

cd customer

python manage.py runserver

Go to localhost:8000.

Staff app development

cd staff

python manage.py runserver

Go to localhost:8000.