Create by Ori Shai
ChocoLux is a web application for a chocolate company, allowing users to view and purchase various chocolate items.
- Features
- Client's Features
- Admin's Features
- DB Structure
- Getting Started
- Usage
- Reference
- Login Details
- View a list of chocolate items with details.
- Add/Remove items to the shopping cart.
- Check out and place orders.
- Add new Items to the database.
- Show reports on the order history.
users - Stores user information.
items - Stores chocolate items information.
orders - Stores orders information.
address_details - Stores address information.
payment_details - Stores payment information.
shopping_cart - Stores shopping cart information.
shopping_cart_details - A view that comabins the shopping cart and the items table.
user_order_total - A view that joins all the tables above, and shows the total amount of orders per user.
Make sure you have the following installed:
- Python (version 3.11.6)
- Flask (version 3.0.0)
- mySQL (version 8.0.26)
- Clone the repository: https://github.com/sholker/Chocolux.git
- cd chocolux
- pip install -r requirements.txt
- Windows:
Linux:
set FLASK_APP=app.py set FLASK_ENV=development flask run
git clone https://github.com/sholker/Chocolux.git cd chocolux export FLASK_APP=app.py export FLASK_ENV=development
- To run the application, run the following command in the terminal:
-
flask run # then in browser, open http://127.0.0.1:5000/
- use this link to see the live demo: https://themewagon.github.io/chocolux/
- use this link for error pages: https://codepen.io/uiswarup/pen/XWdXGGV
Type | Username | Password |
---|---|---|
Client | daredevil | 123 |
Client | spiderman | 123 |
Client | deadpool | 123 |
Admin | moonknight | admin |
Admin | admin | admin |