E-commerce web store app

Created using Django framework and docker

Has admin panel, resent products, autorisation system and shopping cart

Install and setup

To clone repo:

git clone https://github.com/okfok/Django_shopping_cart.git

Prerequirements

Python ver 3.10

Creating virtual environment:

python -m venv venv

Installing requirements:

pip install -r requirements.txt

DataBase

The following database officially supported:

  • PostgreSQL
  • MariaDB
  • MySQL
  • Oracle
  • SQLite

Default: SQLLite, can be changed in

./ShoppingCart/ShoppingCart/settings.py

To format db use comand:

python ./ShoppingCart/manage.py migrate

Running server

To run:

python ./ShoppingCart/manage.py runserver

Also can be: (X.X.X.X - IP-adress, YYYY - port)

python ./ShoppingCart/manage.py runserver X.X.X.X:YYYY

Docker

You can build docker image by using Dockerfile:

docker build -t image_name .

and run container with:

docker run -d -p container_port:outer_port image_name

Auth

You can create user on the website, by manage.py file and directly in db

Creating superuser shoud do unly by manage.py:

python ./ShoppingCart/manage.py createsupperuser

With superuser account you have access to admin panel:

Screenshot from 2022-12-03 17-11-02

Demo

/login Screenshot from 2022-12-03 17-16-00

/signup Screenshot from 2022-12-03 17-16-19 /items Screenshot from 2022-12-03 17-17-38

/cart

Screenshot from 2022-12-03 17-18-45