Giter VIP home page Giter VIP logo

recommendationsex's Introduction

RecommendationsEx

Build Status

This is an under development recommendation engine built with Elixir Phoenix and Neo4j graph database.

The purpose of this API is to provide product recommendations based on users navigation history through your e-commerce products.

Feedbacks and pull requests are very welcome!

Getting Started

First of all, you must download Neo4j graph database (the version used in this project is 3.1.1) and change the database connection settings accordingly to your own configuration at /config.

To start the API server:

  • Install dependencies with mix deps.get
  • Navigate to your Neo4j directory and start its server with ./bin/neo4j console
  • Start Phoenix endpoint with mix phoenix.server

You can check your graph at Neo4j web interface

The current features of the API are:

  • Last seen products - endpoint: /last_seen/:user_id
  • Most viewed products in category - endpoint: /most_viewed/:category_id
  • Who viewed this product, also viewed... - endpoint: /common_views/:product_id

You can optionally add the query string parameter ?limit=:value to set a custom number of results. The default value is 5.

Ready to run in production? Please check the deployment guides.

Data insertion format

user.user_id, category.category_id, product.product_id are the only required properties.

Besides that, it's possible to set whatever property you need.

Here is an example of a post request sent via cURL:

curl -H "Content-Type: application/json" -X POST -d \
'{
    "user": {
        "user_id": "U12345",
        "foo": "bar"
    },,
    "category": {
        "category_id": "C12345",
        "bar": "baz"
    }
    "product": {
        "product_id": "P12345",
        "etc": "..."
    }
}' \
http://localhost:4000/v1/products

recommendationsex's People

Contributors

victorspringer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.