GithubHelp home page GithubHelp logo

samclarkb / food-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmda-minor-web/web-app-from-scratch-2122

1.0 0.0 0.0 17.5 MB

This is a Github repository about a barcode scanner app (Javascript). Check the READ.me for information about the project.

Home Page: https://samclarkb.github.io/Food-app/

License: MIT License

HTML 8.98% JavaScript 56.76% CSS 34.26%

food-app's Introduction

๐Ÿ“ฑ Barcode scanner app

Table of Contents

๐Ÿ“š Assesment

The assignment is as follows: 'Design and build a Single Page Web App based on a User Story.' the user story that I've chosen is as follows: 'As a foodie, I want to be able to scan a product while shopping so that I can read more information about the product and make a good choice whether it fits my diet.'

Rubric:

๐Ÿ’ก Concept

This application allows users to scan barcodes of products from the grocery store. The applictaion is based on the following user story: 'As a foodie, I want to be able to scan a product while shopping so that I can read more information about the product and make a good choice whether it fits my diet.'

When the scan button is pressed by the user, the camera will be enabled. Now when the user brings the barcode in front of the camera, the appplication will show the product details of the specific product. In the example below you see how the application works and what the application looks like.

๐Ÿ“ˆ Process

Interested in my process of making the application? Click here!

โžก๏ธ Activity diagram

๐Ÿ“ Wishlist

There are a few things I didn't get done due to lack of time:

  • insert barcode option
  • close scanner option
  • Available for Iphone
  • Resolve the remaining issues

๐Ÿ”ง Installation

Clone this repository with the following command:

git clone https://github.com/samclarkb/Food-app.git

๐Ÿ”Ž Recources

๐Ÿ”– License

Copyright (c) 2021 Sam Clark Boot, MIT

food-app's People

Contributors

koopreynders avatar joostf avatar samclarkb avatar razpudding avatar notendoos avatar suustenvoorde avatar

Stargazers

 avatar

food-app's Issues

global variables

const h2 = document.querySelector('main>div:last-of-type h2')
const img = document.querySelector('main>div:last-of-type img')
const h3een = document.querySelector('main>div:last-of-type h3')
const h3twee = document.querySelector('main>div:last-of-type h3:nth-of-type(2)')

variabelen kunnen ook in functie gedeclareerd worden

Error state

Nog iets toevoegen voor als een barcode wordt gescand die niet gelezen kan worden/in de API staat

Veel div nog

Probeer wat divjes te verwijderen. Gebruik beter een header, section, article, etc.

Engels & Nederlands

Nog wat Engelse en Nederlandse benamingen door elkaar: 'enableButton & dataOphalen'

Diviritus, try to use more meaningful elements

Food-app/index.html

Lines 11 to 32 in f8012d8

<main>
<div>
<h1>Weet <br> wat je eet</h1>
<div> <p>Druk hier</p></div>
<div>
<a href="#barcode-list " >&#x5e</a>
</div>
</div>
<div >
<div>
<div id="barcode-list"></div>
</div>
<div>
<button> <img src="https://img.icons8.com/ios/50/ffffff/barcode.png"/> <p>Scan</p> </button>
</div>
<div>
<img id="hallo"></img>
<h2></h2>
<ul><li></li></ul>
</div>
</div>
</main>

Opnieuw scannen

Als een product is gescand, verdwijnt de button, dus kan je niet meer opnieuw scannen. Misschien ook nog wat extra styling voor de product info

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.