Mini-Project: All-Purpose Checkbook Balancer

By now, I assume you’ve abandoned Mint.com and embraced the checkbook balancer that we’ve built over the last two chapters. But there’s one feature that you might miss: the ability to track additional accounts beyond checking, savings, and your mattress. For the final version of the checkbook balancer, we’re going to add the ability to add and remove accounts. We’re also going refactor our code into classes (and into more than one file!), making it easier to think of the program in terms of separate, reasonably decoupled components.

Let’s start by installing our dependencies, which will be the same as in checkbooks2:

 $ ​​npm​​ ​​init
 $ ​​npm​​ ​​install​​ ​​--save​​ ​​inquirer
 $ ​​npm​​

Get CoffeeScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.