Giter Club home page Giter Club logo

plante-website's People

Contributors

blazern avatar cyclomaticcomplexity1981 avatar frontaid-cms[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

plante-website's Issues

A subpage to display info about product by its barcode

The website should be able to display pages with information about products.
Example URL: https://planteapp.com/product?barcode=3017620422003
First version of the page should contain similar information to what the Plante mobile app displays in the product page, but without a nice-looking-UI as the design is not ready yet.

Products displayed in Plante have 2 parts:

  1. the Open Food Facts part,
    It contains all the objective information about product - its name, photos, ingredients, etc.
    Can be obtained by a request to Open Food Facts, e.g.: https://world.openfoodfacts.org/api/v2/product/3017620422003
  2. the Plante part.
    Contains information related to product's vegan status and to our moderation process.
    Can be obtained by a request to the Plante backend.

The Plante backend has a backend/product_data endpoint which doesn't require authentication.
Example: https://planteapp.com/backend/product_data/?barcode=123

Response is in JSON, easy to use fields:

  • barcode - barcode of the product
  • vegan_status - of the product, can be:
    • "positive",
    • "negative",
    • "possible" (should be displayed as Ambiguous in UI),
    • "unknown"
  • vegan_status_source, can be:
    • "open_food_facts",
    • "community",
    • "moderator" (should be displayed as "Verified" in UI),
    • "unknown" (this value is used only in case of internal errors)

Lets use Next JS

Lets use the next js so that we can get server-side rendering. SSR is generally required for SEO too.

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.