Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkraak/coffeerun
:coffee: CoffeeRun
https://github.com/tkraak/coffeerun
ava book javascript learn modules teach test unit-test unit-testing
Last synced: 2 days ago
JSON representation
:coffee: CoffeeRun
- Host: GitHub
- URL: https://github.com/tkraak/coffeerun
- Owner: tkraak
- Created: 2017-07-17T13:05:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T00:07:40.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T17:00:12.557Z (7 days ago)
- Topics: ava, book, javascript, learn, modules, teach, test, unit-test, unit-testing
- Language: JavaScript
- Homepage: https://tkraak.github.io/coffeerun
- Size: 692 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CoffeeRun
[![Tests](https://github.com/tkraak/coffeerun/actions/workflows/ci.yml/badge.svg)](https://travis-ci.org/tkraak/coffeerun)
[![Coverage](https://coveralls.io/repos/github/tkraak/coffeerun/badge.svg)](https://coveralls.io/github/tkraak/coffeerun)CoffeeRun is a small shopping-cart style application from the book [Front-end Web Development: The Big Nerd Ranch Guide](https://www.bignerdranch.com/books/front-end-web-development/) that manages coffee orders for a food truck.
The app introduces the JavaScript [module pattern](https://github.com/getify/You-Dont-Know-JS/blob/master/scope%20%26%20closures/ch5.md#modules), [constructor calls](https://github.com/getify/You-Dont-Know-JS/blob/master/this%20%26%20object%20prototypes/ch5.md#constructor-or-call) as well as the [prototype property](https://github.com/getify/You-Dont-Know-JS/blob/master/this%20%26%20object%20prototypes/ch5.md#class-functions) of JavaScript functions.
## Learning & Teaching
For me personally, the application serves as a learning and teaching tool, which is the main reason for keeping complexity as low as possible (no build tools, transpilers, etc.)
## Planned Enhancements
The original code as described in the book can be found [here](https://github.com/bignerdranch/nybblr-javascript-book-walkthrough/tree/master/coffeerun). I'm thinking of the following enhancements:
- [x] pass either `window` or `exports`, which makes for easy module re-use in node
- [x] write unit tests
- [x] write end-to-end tests
- [ ] remove jQuery dependency