WebFund 2015W: Assignment 5: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''This Assignment is not yet finalized''' | '''This Assignment is not yet finalized''' | ||
In this assignment you will create queryNotes.js, a program that will query the notes collection for matching notes. | In this assignment you will create <tt>queryNotes.js</tt>, a program that will query the notes collection for matching notes. Please submit your answers as a single JavaScript source file called "<username>-queryNotes.js" (where username is your MyCarletonOne username). Please do not submit a zip file (i.e., no need for a node_modules directory). | ||
Please submit your answers as a single | |||
In addition to the points below, you also get up to 2 points for overall programming style. In total, there are 10 points. '''The questions below will be automatically graded for everything but style.''' | In addition to the points below, you also get up to 2 points for overall programming style. In total, there are 10 points. '''The questions below will be automatically graded for everything but style.''' | ||
Line 9: | Line 7: | ||
This assignment is due March 2, 2015. | This assignment is due March 2, 2015. | ||
==Features== | |||
queryNotes.js should be called as follows: | |||
node queryNotes.js [--output=<output file>] [--maxcount=<max number of documents to return>] <query> | |||
Note the query is mandatory. The output file should default to standard out, and the if no maxcount is specified then all matching documents should be returned. | |||
The query should be a single string that follows one of two formats: | |||
* query as a query object | * query as a query object | ||
* query by specific fields (title, author, substring in contents) | * query by specific fields (title, author, substring in contents) | ||
More specifics for automated grading will be forthcoming by end of Tuesday. | More specifics for automated grading will be forthcoming by end of Tuesday. |
Revision as of 19:04, 24 February 2015
This Assignment is not yet finalized
In this assignment you will create queryNotes.js, a program that will query the notes collection for matching notes. Please submit your answers as a single JavaScript source file called "<username>-queryNotes.js" (where username is your MyCarletonOne username). Please do not submit a zip file (i.e., no need for a node_modules directory).
In addition to the points below, you also get up to 2 points for overall programming style. In total, there are 10 points. The questions below will be automatically graded for everything but style.
This assignment is due March 2, 2015.
Features
queryNotes.js should be called as follows:
node queryNotes.js [--output=<output file>] [--maxcount=<max number of documents to return>] <query>
Note the query is mandatory. The output file should default to standard out, and the if no maxcount is specified then all matching documents should be returned.
The query should be a single string that follows one of two formats:
- query as a query object
- query by specific fields (title, author, substring in contents)
More specifics for automated grading will be forthcoming by end of Tuesday.