1.6 KiB
| title |
|---|
| CTH-2016 / Assignments |
Assignment #1
For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library commander you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover).
In order to gather data for your script, select 5 books from either the Athenaeum Boekhandel or the American Book Center and construct a simple "hardcoded" database out of these (see example from the class).
Below are two examples of inputs and outputs where the data was taken from the Athenaeum Boekhandel
$ node bookstore.js --author "Hans Ulrich Orbist"
Title: Ways of Curating
Author: Hans Ulrich Orbist
Price: 16.95
Kind: Paperback
$ node bookstore.js --title "The Hatred of Poetry"
Title: The Hatred of Poetry
Author: Ben Lerner
Price: 13.95
Kind: Paperback
Grading
This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (don't forget your README!) and 3) is the code efficient.
You will hand in your assignment through your account on Github. Please refer to CTH-2016 / Assignments Configuration on how to set up your assignments portfolio properly.
The dues date for this assignment is — Tuesday November 8 2016 at 13:00.