Skip to content

E-commerce-shop is an application that allows you to make online purchases in an easy and pleasant way

Notifications You must be signed in to change notification settings

dawdom34/E-commerce-shop

Repository files navigation

E-commerce-shop

E-commerce app made in django

Features:

  • User profile management

    User is able to edit his profile and change/reset his password
  • Address management

    User can have up to four addresses in their account
  • Cart

    The ability to add a product and discount coupon to user cart. The product includes quantity and color
  • Products management

    If the user has the appropriate permissions, he can add new products
  • Product reviews

    The user has the option of adding an opinion about the product, the opinion includes a comment and a rating on a scale of 1 to 5
  • Discount coupon

    Staff is able to add new discount coupons
  • Feedback

    Users can contact via the contact form
  • Payment

    The payment option is simulated using stripe

Screenshots of the application

home_page filtered Details Cart Order db

Setup(Windows)

  1. Create virtual environment and activate it. To do this open cmd and execute commands below
python -m venv name
  • change the name to whatever you prefer
  • Change library to created folder and activate your environment
Scripts\activate
  1. Open git bash and clone this repository
git clone https://github.com/dawdom34/E-commerce-shop.git
  1. Change directory to E-commerce-shop
  2. Now is the time to install all required packages to run this app
pip install -r requirements.txt
  1. Create migrations files
python manage.py makemigrations
  1. Apply all migrations
python manage.py migrate
  1. Create superuser
python manage.py createsuperuser
  • After execute this command follow the instructions
  1. For now your database is empty. Let's change that by adding some products to work with
  • Make sure you're in E-commerce-shop directory
  • Run the command:
python manage.py runscript load_products
  • This command will generate database objects based on data from csv file
  1. Run the development server
python manage.py runserver

Stripe setup

Stripe is a suite of APIs powering online payment processing. It is required for the correct operation of the application. Go to official stripe page and register your account - https://dashboard.stripe.com/register When you register, go to the developers tab (upper right corner) and look for API keys (left sidebar). In standard keys tab you will find two types of keys, publishable key and secret key, copy then to E-commerce-shop/shop-app/settings.py

stripe

Now you're ready to have fun with this app

About

E-commerce-shop is an application that allows you to make online purchases in an easy and pleasant way

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published