Skip to content

Pas0412/bookhubbackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookHub back-end

backend for bookhub using Django and Python

video of presentation: https://youtu.be/z4Pml66kBuk

Author :

Project of DS50 UTBM 2023 :Web e-commerce with recommandation algorithm (KNN)

MAKE DATABASE CHANGES:

Using Python3.9

# 
python3.9 manage.py makemigrations bookhub

# 
python3.9 manage.py migrate bookhub

TABLE

USER

CATEGORY

RATING

BOOKS

CART

FUNCTION

SIGN UP

  • password encoding

LOG IN

  • password encoding

DISPLAY BOOKS

  • recommend books(most rated, most popular, recommendation based on one book using KNN)
  • books by category
  • book detail
  • is favorite judgment
  • get rate
  • show more

CART

  • set cart
  • get cart
  • remove cart by book/all
  • payment

FAVORITE

  • get favorite list
  • set favorite
  • remove favorite

RATING

  • rating books(set rate)

SEARCH

  • get search result
  • show more

HISTORY

  • get history of buying

FOLDER STRUCTURE TREE

截屏2023-06-12 10 56 39
  • models.py collection mapping
  • views.py APIs
  • utils.py functions used in API (algorithm)
  • setting.py settings (registration of app, connection settings with MongoDB)
  • urls.py urls of APIs

DEPENDENCIES

# pymongo
pip install pymongo

# djongo
pip install djongo

# setting.py

About

backend for bookhub using Django and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages