This project is used to add a user to create one or more products. In each product, there is a user name, product price, product name and seller name .
- Python framework Django .
- Django Rest framework .
- PostgreSQL database .
- linter flake8 .
- Docker .
https://documenter.getpostman.com/view/13014200/UVXjJvrZ
- Create a virtual environment on the desktop, for example 'env' .
- write this command in CMD to create it :- ' virtualenv env ' .
- open folder 'env' and acvtivate virtualenv using this command : '.\Scripts\activate' .
- clone my project using this command : git clone "https://github.com/werdani/pro-service.git" .
- cd 'pro-service' and install requirments using this command : pip install requirment.txt .
- now need to create database in PostgreSQL using this name 'productss' .
- 'USER': 'postgres', 'PASSWORD': 'postgres', 'HOST': 'localhost', 'PORT': '5432' .
- need to makemigrations using this command in CMD : 'python manage.py makemigrations' .
- need to migrate using this command in CMD : 'python manage.py migrate' .
- now database is ready to add products, but now you need to create a superuser .
- to create superuser write this command in CMD: 'python mange.py createsuperuser' .