-
Fork this Github repository.
-
Clone your new repo.
-
Install Node.js and Bower dependencies.
npm install bower install
-
Install Bower dependencies used for testing.
cd test bower install
-
Run
grunt serve
to serve up your files using a local Node (Connect) server. A browser window will open pointing to yourindex.html
file. Any changes you make will be reflected in the browser immediately (without you having to hit refresh all the time). You will also get feedback about JSHint issues and test results in the terminal as you go along. -
Commit/branch your stuff as you would normally. When you're finished, push your code to your Github repo, and drop us a link to it in email.
-
On the Menu page, add a new column "Description". Display the description of each meal in that column.
-
Display the orders for each restaurant in a layout similar to the Menu page. It's recommended you look at
app/scripts/menu.js
as an example. Some boilerplate code is already written for you inapp/scripts/orders.js
. -
Implement the functionality of sorting the orders by date or total value.
-
Implement another sync strategy for the menu: cache the server response in localStorage. You may write your own solution or use a Backbone plugin to acheive this.
This app was generated using the generator-webapp
Yeoman generator.
It uses Backbone. For the sake of simplicity, Underscore is used to render the templates. The templates are defined in inline <script>
tags in app/index.html
. No JS module system is used.
The tests use Mocha, Sinon.js and Should.js. If this particular combination is not your cup of tea, we don't expect you to write tests, otherwise please do.