Skip to content

Latest commit

 

History

History
256 lines (188 loc) · 6.49 KB

README.md

File metadata and controls

256 lines (188 loc) · 6.49 KB

ShopNow Ecommerce app

developer

Tech Stack

Client: HTML, CSS, Bootstrap, Javascript, Jquery

Server: Python, Django, Django-Rest-Framework

Demo Shop

Shop: http://shopnowbd.herokuapp.com

Admin:

username: admin@gmail.com
password: admin
link: http://shopnowbd.herokuapp.com/control

Run Locally

Clone the project

  git clone https://https://github.com/mdimranh/ShopNow-Ecommerce-app.git

Go to the project directory

  cd ecomapp

Install dependencies

  pip install -r requirements.txt

Start the server

  python manage.py runserver

Now click here http://localhost:8000

API Reference

Registration

  POST /api/registration
Parameter Type Description
first_name string Required
last_name string Required
email email Required
password string Required

Login

  POST /api/token
Parameter Type Description
username email Required
password string Required
  POST /api/resfresh
Parameter Type Description
token string Required

User

  GET /api/user/<int:id> [user id]
Parameter Type Description
id int Required
Authorization [Header] "Bearer 'access key, get from /api/token'" Required
  POST /api/user/<int:id> [user id]
Parameter Type Description
first_name string Required
last_name string Required
email email Required
password string Required

ShopCart

  GET /api/myshopcart
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, get from /api/token'" Required
  POST /api/cart/add
Parameter Type/Value Description
product_id int Required
quantity int Required
color str Optional
size str Optional
options list Optional
Authorization [Header] "Bearer 'access key, get from /api/token'" Required

Wishlist

  GET /api/wishlist
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/wishlist/delete/<int:id>[product id]
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required

AddressBook

  GET /api/addressbook/<int:id> [book id, from /api/user/<int:id>]
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required

Product

  GET /api/products
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/product/<int:id>
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/new-product
Parameter Type/Value Description
date_range int[no of days] Required
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/hot-product
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/recently-view
Parameter Type/Value Description
no_of_product int Required
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/best-sold
Parameter Type/Value Description
date_range int[no of days] Required
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/latest-sold
Parameter Type/Value Description
no_of_product int Required
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/products/product-carousel
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required

Category

  GET /api/categories
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required
  GET /api/category/<int:id> [category id]
Parameter Type/Value Description
Authorization [Header] "Bearer 'access key, from /api/token'" Required

Add Review

  POST /api/review
Parameter Type/Value Description
product_id int Required
comment str Required
rating int [0-5] Required
Authorization [Header] "Bearer 'access key, from /api/token'" Required