GithubHelp home page GithubHelp logo

project-nutrition's Introduction

Barcode Scanner project

This web app has been generated using create-react-app-boilerplate. The project is a barcode scanner, which scans and fetch an API through which we can get information about the scanned product. The web app renders information wether the product contains palm oil or not, and it also renders a message in case the scanning did not work or if the product is missing in the API.

The project has been built with react redux, state-hooks and redux-hooks such as useDispatch and thunk.

The process

First I set upp the store and reducers for the web app, after that I mounted the barcodescanner and fetched the API to see what information I could get from it. Based on this I decided what the focus of the app would be an could start the planning of the project. Next step was to start mount data from the API, then I focused on bulidng the function and layput of the menu at the top left-corner. NExt step was to focus on conditional rednerings and adding the function behind the cancel-button that is showing when the scanner is active.

If I had more time I would have used route to make several pages for the app. I also would have adjusted what is visible when a barcode has been scanned and a product is showing. For example I would not want the barcode animation to show when a product has been found.

Deployed site

https://palmoil-nothanks.netlify.com/

project-nutrition's People

Contributors

jenfi avatar idlefingers avatar

Watchers

James Cloos 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.