Giter Club home page Giter Club logo

oluttamo-api's Introduction

oluttamo-api's People

Contributors

0is1 avatar mkaski avatar

Watchers

 avatar  avatar

Forkers

0is1

oluttamo-api's Issues

Add "Create new beer" functionality

beers.zip doesn't seem to include all beers in ratebeer.com (and it seems that the .zip-file is not updating) So we need possibility to add new ratebeer.com beers to our database.

Light authentication required? (maybe google login?)

Parse beer rating data from ratebeer and add it to the beers collection

At the moment it's not possible to show ratebeer.com page in the iframe if web page uses https because it violates Content Security Policy (ratebeer.com does not support https). This can be one solution to use Oluttamo also in https-pages.

Idea:

  1. Loop and scrape ratebeer.com/beer/ID/ -pages
  2. Get overall and style rating + maybe beer style from html
  3. Add data to beer info
  4. Serve data to oluttamo-browser-extension

Updated schema could look like:

const BeerSchema = new mongoose.Schema({
    breweryName: {
        type: String,
        required: true,
    },
    beerName: {
        type: String,
        required: true,
    },
    beerFullName: {
        type: String,
        required: true,
        index: true,
    },
    ratebeerId: {
        type: String,
        required: true,
        index: true,
    },
    overallRating: {
        type: Number,
        required: true,
    },
    styleRating: {
        type: Number,
        required: true,
    },
    beerStyle: {
        type: String,
        required: true,
    },
    createdAt: {
        type: Date,
        default: Date.now,
    },
});

If we do like this, it's possible to show some information about the beer even user is on https://-page. Of course ratings need also update once in a while. That also enables settings like "Show only beers that have overall rating > 80" etc.

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.