This project is a full-featured book selling website with two distinct user interfaces: a User UI for customers and an Admin UI for administrators.
- Payment and Shipping Management: Users can set their preferred payment method and shipping address.
- Book Browsing and Filtering: Users can view books with search and filter functionality based on language, category, and sorting options (rating and sales).
- Cart Management: Users can:
- View their cart.
- Delete books from the cart.
- Adjust book quantities directly in the cart.
- Order Management:
- Users can proceed with payment.
- After payment, users can view their purchase history, which includes the total amount, purchase ID, and status of each purchase.
- Order Management: Admins can update customers' order statuses.
- Stock Management:
- Search books based on the book ID, ISBN, or author.
- Update stock levels.
- Product Management: Admins can add new products to the catalog.
Clone this repo:
git clone https://github.com/WUNLIMZHE/cat201-project.git
cd cat201-project
Running with Node
- Make sure you have Node.JS installed.
Node installation link:
https://nodejs.org/en
- Navigate to the frontend directory.
cd .\frontend\
- In the directory, install the dependencies using npm install.
npm install
- Run the server:
npm run dev
- Go to http://localhost:5173.
http://localhost:5173
Running with Tomcat Server
- Make sure you have Apache Tomcat installed.
Tomcat installation link:
https://tomcat.apache.org/
- Make sure you have Apache Maven installed.
Maven installation link:
https://maven.apache.org/
- Navigate to the backend directory.
cd .\backend\
- Run the server:
mvn tomcat7:run
- Go to http://localhost:9000.
http://localhost:9000