Created using Django framework and docker
Has admin panel, resent products, autorisation system and shopping cart
To clone repo:
git clone https://github.com/okfok/Django_shopping_cart.git
Python ver 3.10
Creating virtual environment:
python -m venv venv
Installing requirements:
pip install -r requirements.txt
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
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
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
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:
/cart