Pablo123GitHub / grocery_allstars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grocery Allstars

How often have you found a slimy pack of salad, or an inedible kernel of something formally known as food, at the back of your fridge? Food waste is a global issue with one third of the global production lost or wasted annually, according to the Food and Agriculture Organisation. In the UK, we throw away 7 million tonnes of food and drink from our homes every year, the majority of which could have been eaten. This wastage costs the average household in the UK £470 a year.

To help curb this endemic we created an app which uses a barcode scanner to scan food items and notify the user when it is due to be eaten, before the use by date, cutting down on food waste and saving you money.

Usage

The scanner connects to Tesco's API using an AJAX request which brings back product data to the browser. The products are stored in the database and queried using Knex.

Built with

💻 Node.js

💻 Express

💻 Bookshelf

💻 Postgres

💻 Mocha

💻 Chai

💻 Zombie

Install

This project uses node and npm.

  1. Install Node.js directly from the node.js.org website.

  2. Clone the repo to your computer.

$ git clone https://github.com/AramSimonian/grocery_allstars
$ cd grocery_allstars

Install the node dependencies:

$ npm install 

Use app

$ npm start

visit localhost:3000

Testing

  • Mocha: JS framework running on Node.js
  • Chai: BDD / TDD assertion library
  • Zombie: Feature testing for the browser

Team Members

Licence

MIT

About

License:MIT License


Languages

Language:JavaScript 97.2%Language:HTML 1.7%Language:CSS 1.1%