Client: HTML, CSS, Bootstrap, Javascript, Jquery
Server: Python, Django, Django-Rest-Framework
Shop: http://shopnowbd.herokuapp.com
username: admin@gmail.com
password: admin
link: http://shopnowbd.herokuapp.com/control
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
POST /api/registration
Parameter | Type | Description |
---|---|---|
first_name |
string |
Required |
last_name |
string |
Required |
email |
email |
Required |
password |
string |
Required |
POST /api/token
Parameter | Type | Description |
---|---|---|
username |
email |
Required |
password |
string |
Required |
POST /api/resfresh
Parameter | Type | Description |
---|---|---|
token |
string |
Required |
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 |
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 |
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 |
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 |
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 |
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 |
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 |