Skip to content

ffbf00/Barcode-Database-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Barcode-Database-App

Prototype for SHAD -- Yttrium

Database

Accessing all products:

GET http://eatcofriendly.000webhostapp.com/api/product/read.php

{
  "records":[
  {
    "barcode":"0062020000743",
    "product_name":"Nutella",
    "company_name":"Ferrero",
    "image":"https:\/\/www.cutpricebarrys.co.uk\/wp-content\/uploads\/2018\/10\/nutella.jpg",
    "recyclable":"1",
    "biodegradable":"0",
    "disposal":"Lid - recycling bin\r\nContainer - recycling bin\r\nFoil - recycling bin\r\n\r\n*make sure to clean off all residue before recycling",
    "points":"20",
    "suggestions":null
  },
  {
    "barcode":"0064100589988",
    "product_name":"Mini-Wheats",
    "company_name":"Kellogg's",
    "image":"https:\/\/az836796.vo.msecnd.net\/media\/image\/product\/en\/medium\/0006410058998.jpg",
    "recyclable":"1",
    "biodegradable":null,
    "disposal":"Box - recycling bin\r\nPlastic bag - garbage","points":"20","suggestions":null
  }]
}

(yes, there are only 2 products)

Accessing one product with the barcode:

GET http://eatcofriendly.000webhostapp.com/api/product/read_one.php?barcode=0062020000743

{
  "barcode":"0062020000743",
  "product_name":"Nutella",
  "company_name":"Ferrero",
  "image":"https:\/\/www.cutpricebarrys.co.uk\/wp-content\/uploads\/2018\/10\/nutella.jpg",
  "recyclable":"1",
  "biodegradable":"0",
  "disposal":"Lid - recycling bin\r\nContainer - recycling bin\r\nFoil - recycling bin\r\n\r\n*make sure to clean off all residue before recycling",
  "points":"20",
  "suggestions":null
}

(also, we hosted with 000webhost because we didn't want to spend any money)

Helpful Links

About

Simple barcode app that connects to a database (prototype for SHAD).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages