A video subscription services.
Single page online sushi order app
With the popularity or online applications and services. Restaurants would be more compatible having its own clean and simple interface online ordering routine for customers. Order is a user-friendly interface, production-ready application, built on single page application technology, which is extremely fast and easy for user to navigate.
Often times, there is a requirement for an application to be lightweight, event-driven, fast and simple to use. Order is the app that create as an experiment, of which is serve as an one page application, which has purposes of viewing, selecting and ordering items.
As mentioned in introduction, Node.js(Javascript runtime environment) integrated with Node Library/APIs and frontend framework are the best candidate for creating Order app.
Noted that
Backbone.js
was one of the first front-end framework that came out, andReact.js
wasn’t around at the time. Modern front-end developer might preferAngular.js
orReact.js
, however, the concept of single page application, and the process of its implementation are still pretty much the same idea.
Backbone.js is packaged with the concept of models, collections, views and routers out of the box.
middleware | purpose |
---|---|
body-parser | make req.body request available |
cookie-parser | parse req.cookies for header |
express | web framework for node.js |
pug | back-end template engine |
jasmine-node | test Integration spec Javascript |
morgan | HTTP request logger middleware |
request | http call middleware |
grunt | JavaScript Task Runner |
bower | Web package manager |
handlebars | front-end templating languages |
uglify | Javascript minifier |
nodemon | Server change monitor |
Simplify interface with the ability to add item to cart without refreshing the page(re-rendering the whole page based on event trigger, fired from Backbone.js).
Checkout and cart details summary.
Backbone.js is implemented with
Backbone router
which triggers the window to navigate at destinated url without reloading page.
Attached other events to the view then manipulating model or controller.
Empty cart will trigger Backbone to reset all collection.
Slide show triggers the slideshow Jquery algorithm attached to Backbone event.