Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

pknn/radii

Repository files navigation

Radii

Code style: Black Updates Python 3 CircleCI MIT Site status
codecov

Team member

Name Github
Pakanon Pantisawat @pknn1
Thanapoom Rattanathumawat @poom201211
Supaluk Jaroensuk @SupalukBenz

Project Description

Radii is a event recommender powered by Cafeine, which is a API service for recommendation based on Implicit Collaborative filtering Library.

About Cafeine

Cafeine is a API service for recommendation based on Implicit Collaborative Filtering Library, which is an algorithm for predicting user behavior based on their preferences.

Read more about Collaborative Filtering on How Does Spotify Know You So Well? and Collaborative Filtering.

Development stacks

Build setup

Activate virtual environment and install required dependencies. Linux and macOS

. venv/bin/activate
pip install -r requirements.txt

Windows

/venv/bin/activate
pip install -r requirements.txt

Optional
You can use your own postgres client database or using default sqlite to do the work.

# Config Database path (postgres)
export DATABASE_URL=postgresql://localhost/radii_app    

Updating database to match data structure.

flask db init
flask db migrate
flask db upgrade

Running app in Development or Production using Gunicorn Meinheld as a worker class Application will required ssl certificate in order to work correctly.

# Development run
python app.py

# or if you have flask installed
export FLASK_APP=app.py
flask run

# Production run
gunicorn app:app --bind 127.0.0.1:5000 --workers=2 --worker-class="egg:meinheld#gunicorn_worker"

Developer Resources