an E-commerce website for clothes allow customers to order clothes online with visa or Mastercard using stripe API ,save their address for the next purchase ,use promo code for getting discount
-
Products
- Products are displayed on the home page with the ability to search by name and filter by category.
- Admin can CRUD Products using Django admin dashboard with the ability to search with names and filter products by categories
- products have 2 different labels that can be changed or removed by admin.
- products might have a discount price.
-
shopping cart
- shopping cart is made in the database instead of using session (although using session will give better performance) to keep the items in the shopping cart for life until they removed or the order is made and to allow continuing the order from another device
- Customers can add items in the shopping cart is it's not created it creates a new shopping cart and add this item
- Customers can change the number of products ordered from the same item or remove it.
-
Coupons
- customers can add cupon to have a discount on their order
- Customer can use the coupon only N of times and the admin who created the coupons can determine That N.
- admin can create coupons that can be used by specific customers only.
-
Checkout and Payment
- Customers can't go to payment page unless they have items in their shopping cart
- Customers fill their information and can save this information for the next order.
- customers choose payment method Stripe or Paypal (Paypal is not completed yet)
- when using stripe customers enters their card information then finish the checkout if the card number is wrong then a message is sent back to them displaying the error and if everything is fine then a success message is sent back and the order is payment is done using stripe API.
Before you begin, ensure you have met the following requirements:
- you have installed python3.6 or above
1- fork or download this repository and then open the folder in your CLI
2- install all the dependencies
On Linux and macOS:
pip3 install -r requirements.txt
On Windows:
pip install -r requirements.txt
3- run migration to create the database
On Linux and macOS:
python3 manage.py migrate
On Windows:
python manage.py migrate
Notes:
- you can use virtual environment "venv" if you want to install all the requirements inside virtual environment instead of installing them directly on your operating system you click here for more inforation
- please contact me if you have problems in the Installation process
after installing all the requirements run the app
On Linux and macOS:
python3 manage.py runserver
On Windows:
python manage.py runserver
open your browser and write that link to view the project
http://127.0.0.1:8000/
to enter the admin dashboard :
first, create a superuser in the terminal
python3 manage.py createsuperuser
then login in the admin dashboard found here
http://127.0.0.1:8000/admin
-
Front End
- Bootstrap 4
- mdbootstrap
-
Back End
- Django 2
- Pillow
- django-allauth
- django-countries
- stripe
credits go to JustDjango Youtube channel for the tutorial about building Django e-commerce