Skip to content

this is ecommerce backend with django rest framework

Notifications You must be signed in to change notification settings

suraj1s/e-commerce-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frequently used commands

Initial project setup

mkdir newProject
cd newProject
python3 -m venv env
source env/bin/activate
pip install django djangorestframework
django-admin startproject api .
python manage.py startapp auth

Frequently used python commands

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

# Output the list of installed packages and their versions to a file
pip3 freeze > requirements1.txt

# Install the packages listed in the requirements.txt file
pip3 install -r requirements.txt

# run docker in detachmode with prot 6379 in both local and docker container with redis database
docker run -d --rm -p 6379:6379 redis

Load porducts

python3 -m venv env source env/bin/activate pip3 install -r requirements.txt create a user and get products from the API https://dummyjson.com/products?skip=0&limit=110 get "products" from response object

About

this is ecommerce backend with django rest framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published