Git Product home page Git Product logo

whiskey-api's Introduction

Coverage Status

This is an API for a whiskey recommendation site.

Where does the data come from?

Approximately 15,000 whiskey reviews were scraped and analyzed as seed data to determine how whiskeys are most commonly described. From that list we selected about 70 of the most accessible descriptors; terms such as cherry, chocolate, or light. A PostgreSQL database of roughly 370 whiskeys was then put together, each whiskey with it's own profile based on how often it is described by each of those terms.

How do the recommendations work?

There are two ways to discover new whiskeys with the API. The first is the shoot endpoint. Different tags, regions, and price ranges can be sent as a query string and a list of whiskeys will be returned, ordered by how closely they match the terms.

The other is with the comparable field that is on each whiskey. This is a list of the other whiskeys in the database that it most closely matches. These comparables are generated with the set_comps command which takes an array of each whiskeys' attributes, calculates the Euclidean Distance from every other array, and returns the most similar items.

The website can be viewed at http://goo.gl/6ZdBRz

All endpoints are listed and documented here: https://evening-citadel-85778.herokuapp.com/docs/

Technologies used.

Code: Written in Python with the Django REST API framework.

Data gathering and analysis: PRAW, pandas, and numpy.

Text search: Elasticsearch.

Image hosting: Cloudinary.

Continuous integration: Travis and Coveralls.

Credits

The Whiskey Proof front end was written by Mark Medeiros using Javascript and the React framework.

Heather Borowinski edited and resized the whiskey images and created their background.

whiskey-api's People

Contributors

aaronscruggs 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.