Giter Site home page Giter Site logo

drink-this / drink-this-backend Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 707 KB

A cocktail recommendation app. Find your new favorite based on ratings of other users like you.

Home Page: https://drink-this-frontend.herokuapp.com/

Ruby 99.78% HTML 0.22%
data-modeling pycall rails soa

drink-this-backend's People

Contributors

jaybraum avatar markcyen avatar mkrumholz avatar redferret avatar twarbelow avatar zachjamesgreen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jfeldstein

drink-this-backend's Issues

End point that sends data for home page

5 rated cocktails sorted by stars

  • id
  • name
  • stars

5 random cocktails the user has not rated

  • id
  • name

5 random cocktails by glass (coup in this case) that the user has not rated

  • glass
  • id
  • name

5 random cocktails by alcohol (rum in this case) that the user has not rated

  • alcohol
  • id
  • name

if one call is used it could look something like this

{
    "rated": {
        "cocktails": {}
    },
    "random": {
        "cocktails": {}
    },
    "glass": {
        "type": "coup",
        "cocktails": {}
    },
    "alcohol": {
        "type": "rum",
        "cocktails": {}
    }
}

Make a recommendation

As a user, when I click the button requesting a recommendation, I want to see a cocktail recommendation based on ratings I've provided and ratings from all other users in the system.

Cocktails Yelp Search

When a client sends a get request to "/api/v1/search/yelp", with a valid param in request body called "query" of type string, the response would be the results:

{
"data": [ { 
   "name": "business name",
   "address": "business address",
   "business_type": "type of business",
   "thumbnail": "business thumbnail",
   "yelp_link": "yelp link to business"
},
  { 
   "name": "business name",
   "address": "business address",
   "business_type": "type of business",
   "thumbnail": "business thumbnail",
   "yelp_link": "yelp link to business"
} ]
}

Google OAuth

As a user, I want to be able to create an account and then subsequently log into the app with Google.

Cocktails Search

When a client sends a get request to "/api/v1/search/cocktail", with a valid param in request body called "query" of type string, the response would be the results:

{
"data": 
   [ {
   "id": "cocktail_id",
   "type": "cocktails_search",
   "attributes": {
      "name": "cocktail name",
      "thumbnail": "cocktail thumbnail",
      "rating": "cocktail rating"
      }
   } ,
       {
   "id": "cocktail_id",
   "type": "cocktails_search",
   "attributes": {
      "name": "cocktail name",
      "thumbnail": "cocktail thumbnail",
      "rating": "cocktail rating"
      }
  } ]
}

Cocktail details

As a user, when I click on a cocktail to visit its show page, I want to see the cocktail's recipe (ingredients and amount/measure of each), full-size image, name, glass type, and description of how to make it.

Remove duplicates from search (bug)

Search now can include both the cocktail from the search by name and by ingred, so I just need to ensure we're filtering any and all duplicates out.

Cocktails for Dashboard, No Ratings

As a user with no ratings stored in the DB, I want a list of cocktails that I have not yet rated. I also want to get the number of ratings I need to complete, which should drop as I rate cocktails.

Cocktail Rating

When a client sends a post "/api/v1/cocktails/:id/rating" to create a new rating, with a valid :id as an integer, the response status would be 201,

{
"data": { 
   "id": "id of rating",
   "type": "cocktail_rating",
   "attributes": {
      "user_id": "user id",
      "cocktail_id": "cocktail_id",
      "stars": "rating of the cocktail"
      }
   }
}

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.