Skip to content

A book recommendation system based on popularity and collaborative filtering methods with an UI built with React and Tailwindcss and fastapi backend

Notifications You must be signed in to change notification settings

Devzard/book-recommendation-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Recommendation System with React UI

This is a simple recommendation system project that implements popularity based recommendation system and collborative filtering system to recommend books.

Screenshot 2023-10-05 at 12 09 47 AM Screenshot 2023-10-05 at 12 16 25 AM Screenshot 2023-10-05 at 12 16 47 AM

Steps to setup the project

Setting up the backend

  1. Create an python environment with python version = 3.11.5, for conda it will be :

        conda create --name book-recommendation python=3.11.5
    
  2. Then activate the environment, for conda :

        conda activate book-recommendation
    
  3. Install the dependencies using pip

        pip install -r requirements.txt
    

Starting Fast API backend

Starting backend for development :

    python app.py -e dev 

Starting backend for production :

    python app.py -w 4

** optional argument : -w/--workers (default 1) (only for production)

Visit http://localhost:8000/hello to check if backend api running properly. You should see this message :

    {
        "message": "Hello from book-recommender-api"
    }

API docs will be available at :

To work on UI (React)

To start the development server (vite + react + tailwindcss) :

    cd ui

If you're running it for the first time :

    npm i

then

    npm run dev

Building the ui

    npm run build 

The output directory will be : /public

Other important stuff

  • To change backend port in development or production use /config.
  • Dataset taken from kaggle.
  • Followed tutorial of CampusX to create this project's backend.

About

A book recommendation system based on popularity and collaborative filtering methods with an UI built with React and Tailwindcss and fastapi backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published