werdani / pro-service

pro-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pro-service

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 .

technologies I used :

  • Python framework Django .
  • Django Rest framework .
  • PostgreSQL database .
  • linter flake8 .
  • Docker .

API documentation

https://documenter.getpostman.com/view/13014200/UVXjJvrZ

How to Install and Run the Project in windows :

  • 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' .

About

pro-service


Languages

Language:Python 97.7%Language:Dockerfile 2.3%