This is a simple prototype written to learn about some of the technologies used to build an HTML5 offline web application. It uses:
The app itself is a little Shopping List. The point was not to build something useful, but rather to experiment with these technologies.
I wrote about some of the things learned while writing this in a blog post.
If you want to run the application to see it in action you need to have Bundler installed. Then you can bundle install
or rake gems
which does the same thing. Once the gems are installed rake run
will start the app on port 4567.
Load http://localhost:4567
in your browser (most recent version of any browser should work). Once the browser has cached all of the files (very quick on localhost) you can kill the web server and refresh the page and the application should still function.
Sinatra web application. Defines a couple of routes and creates a JSON text file to be used as a database.
Javascript file includes client side templates written in Jaml (a javascript haml-link DSL), and Sammy application to handle the "single page" client side interactions.