This is a simple recommendation system project that implements popularity based recommendation system and collborative filtering system to recommend books.
-
Create an python environment with python version = 3.11.5, for conda it will be :
conda create --name book-recommendation python=3.11.5
-
Then activate the environment, for conda :
conda activate book-recommendation
-
Install the dependencies using pip
pip install -r requirements.txt
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 :
cd ui
If you're running it for the first time :
npm i
then
npm run dev
npm run build
The output directory will be : /public