Live Site : https://aqueous-cliffs-8772.herokuapp.com/
$ git clone https://github.com/d9nny/till_tech_test
Navigate to root directory of the project:
$ bower install
$ npm install
To run locally, run:
$ node app.js
and navigate to http://localhost:5000/ in your browser
To run tests:
$ karma start test/karma.conf.js
- BDD
- Muffin Discount
- Factory for HTTP request
.....................................................
Instructions: Please fork this repo and submit a pull request once you've finished. Then prepare for code review!
We want to sell tills to local hipster coffee shop who are finally embracing the 21st century. We need a new till to replace their vintage machines - unfortunately, hipster staff are too cool to learn a new system, so we need you to build something that they will understand.
This is what a sample receipt looks like:
Implement a system that contains the business logic to produce receipts similar to this, based on a json
price list and test orders. A sample .json
file has been provided with the list of products sold at this particular coffee shop.
Here are some sample orders you can try - whether you use this information is up to you:
Jane
2 x Cafe Latte
1 x Blueberry Muffin
1 x Choc MudcakeJohn
4 x Americano
2 x Tiramisu
5 x Blueberry Muffin
Your receipt must calculate and show the correct amount of tax (in this shop's case, 8.64%), as well as correct line totals and total amount. Do not worry about calculating discounts or change yet. Consider what output formats may be suitable.
- Add functionality to take payment and calculate correct change.
- Add functionality to handle discounts - in this example, a 5% discount on orders over $50,
and a 10% muffin discount.
Implement an user interface that can actually be used as a till.
You may use whatever technologies you see fit.