It is ecommerce based recommendation engine built on operational data one of the ecommerce application. It uses the hybrid approach to recommend products. Hybrid approach combines both attribute of user, items to solve the problem of cold start and data sparsity. User attributes: Age, Gender and Items attributes: Price, Brand, Category has been considered along with interaction's purchase, click, wishlist to built model
- Flask
- Python
- Streamlit
- Postgresql
- Create a virtual environment with python3
python3 -m virtualenv venv
- Activate the virtual environment:
cd venv source /bin/activate
- Install dependencies
pip install -r requirements.txt
- Configure the database Create database and add .env file in
api/.env
. template of.env
is as follows:DATABASE_NAME = DATABASE_PORT = USER_NAME = USER_PASSWORD =
- Navigate to root of the project
- Set environment variables
export FLASK_APP=app:create_app export APP_SETTINGS="api.config.DevelopmentConfig"
- Run Flask
flask run
- Run streamlit application as:
streamlit run streamlit_app.py