We're using Ember.js with Ember Data to handle REST backend requests. The search & downloads functionality is implemented in Species+, this is just the front-end.
- Rake Pipeline setup example
- A skeleton app for rake pipeline
- Tutorial Jan 2012
- Links to resources Feb 2012
We are using a customised version of Twitter Bootstrap Typeahead. There
should be little need to upgrade in the future due to the simplicity of
the library, however should it be necessary then a good read through
bootstrap.js
beforehand is required to see what needs to be kept.
In order to install libv8 and therubyracer on MacOS:
$ brew install [email protected]
$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected])
$ bundle install
On Ubuntu, bundle install
is sufficient.
Assets are pre-compiled with rake pipeline and served statically:
bundle exec rakep build
For development use the built in server:
bundle exec rakep server
As this is a pre-compiled static page setup that uses HTML5 pushState,
you need to setup your server to redirect requests to the index page. In
Apache this should work automatically with the included .htaccess
file, however for nginx you must add a rule to your server directive to
do this:
rewrite ^(.+)$ /index.html last;
You can turn off pushState, however, in config.js.