Skip to content

farshadz1997/Django-Ecommerce-Project

Repository files navigation

Ecommerce website

A CRUD website for selling products built by the Django framework and Django rest framework.

Installation

  • Create a virtual environment for this project.
  • Use pip install -r requirements.txt install dependencies packages.
  • Sign up in Stripe and add your SECRET_KEY, PUBLIC_KEY and ENDPOINT_SECRET in .env file.
  • Run python manage.py makemigrations then python manage.py migrate.
  • Create super user python manage.py createsuperuser.
  • Run server python manage.py runserver.
  • For Stripe payments to work you need to first login with stripe login then to listen to webhook run stripe listen --forward-to localhost:8000/payment/webhook/.

Features

  • User Authentication
  • Cart management with AJAX requests
  • Payment with Stripe
  • CRUD operations for Addresses
  • View orders
  • All operations can be done via API endpoints

Photos

  • Index page

    Screenshot_21-5-2024_6122_127 0 0 1
  • Product page

    Screenshot_21-5-2024_6241_127 0 0 1
  • Shopping cart page

    Screenshot_21-5-2024_6355_127 0 0 1
  • User dashboard page

    Screenshot_21-5-2024_6234_127 0 0 1