In this initial commit, all I have done is to create the static html fallback site. It includes two main pages – the homepage and a message list page, as well as 5 messages. In a real application these would most likely not be static pages, but instead generated via PHP, Ruby, NodeJS etc. However, for the purposes of this project, I am not at all interested in the backend.
Included in this initial commit is a very simple static web server (powered by NodeJS) to serve the files. This has been included so you don’t have to worry about setting up Apache or similar. Instructions for use are in the _server.js file itself.
Next time we’ll look at building a simple Backbone.js application over the top of our fallback setup.