friendsreco

A simple HTTP friends recommendations service.


Keywords
recomendations, service, graph, neo4j
License
MIT
Install
pip install friendsreco==0.0.11

Documentation

Build Status Coverage Status PyPi Last Version PyPi Develop Status Python Versions License

friendsreco

A simple HTTP friends recommendations service

Running locally:

  • Install minikube as in doc
  • Install helm package manager as in doc
  • Install friendsreco helm package: make deploy
  • Proxy ports: kubectl port-forward deploy/friendsreco 7474:7474 7687:7687 6000:6000 8080:8080
  • Activate debug messages, if desired: make debug-deploy

These steps can be used to deploy the application on cloud too.

Running tests:

  • pip install tox && tox

Get friendships for the given people:

  • curl -i localhost:8080/friendships?who=Arthur,Mari

Get all friendships:

  • curl -i localhost:8080/friendships

Create recommendations:

  • curl -i -X POST localhost:8080/recommendations

Get recommendations for a given person:

  • curl -i localhost:8080/recommendations/Arthur

Get all recommendations:

  • curl -i localhost:8080/recommendations