Skip to content
UI Layer for lonelyplanet.com
JavaScript CSS HTML Ruby Cucumber Python
Latest commit 1adec5f Apr 29, 2016 @laserchicken laserchicken Merge pull request #1521 from lonelyplanet/mk-map-fix
poi map resizing fix
Failed to load latest commit information.
app poi map resizing fix Apr 29, 2016
config Use proper path for log file Jan 13, 2016
features Remove core layout Jan 16, 2015
git-hooks Attempt to make the pre-commit hook a bit more solid Mar 26, 2014
lib remove backend part of rizzo_sailthru component Jan 21, 2016
node_modules/rizzo-next/dist Bumping rizzo next Feb 10, 2016
public Rename common_core css files Jan 5, 2015
script add rails app scripts dir Sep 9, 2012
spec Track pageView after lightbox content is ready Apr 26, 2016
vendor/assets Bump jquery-timeago to v1.4.3 Oct 14, 2015
.bowerrc Add flamsteed with bower Jul 23, 2013
.editorconfig post discussion changes Jan 22, 2014
.gitattributes Attempt to make the pre-commit hook a bit more solid Mar 26, 2014
.gitignore Remove optional deps, change gitignore to include parts of rizzo-next Jan 11, 2016
.gitmodules Add submodules May 20, 2014
.jscs.json Fix issue with jscs, add submodule update to npm Apr 8, 2015
.jshintrc Add ability to have custom renderer to lightbox. Jul 29, 2014
.npmignore Updated paths in .npmignore Jun 18, 2015
.ruby-gemset.example replace rvmrc example dotfile with ruby-gemset & ruby-version Jan 7, 2014
.ruby-version.example replace rvmrc example dotfile with ruby-gemset & ruby-version Jan 7, 2014
Gemfile Bump requirejs-rails & sprockets to latest releases Apr 11, 2016
Gemfile.lock Bump requirejs-rails & sprockets to latest releases Apr 11, 2016
Gruntfile.js Update npm packages; make versions less obscure Apr 11, 2016
LICENSE Add Lonely Planet as project owner Apr 14, 2014
README.md update test section of the readme Jul 9, 2015
Rakefile Remove relic avocado rake tasks Sep 17, 2013
bower.json Bump Autocomplete Apr 4, 2015
config.ru Merge remote-tracking branch 'beaker/master' Sep 16, 2013
package.json Update npm packages; make versions less obscure Apr 11, 2016
rizzo.gemspec Replace Sanitize with build-in helper Mar 23, 2016

README.md

Rizzo

Rizzo is the UI layer for lonelyplanet.com. Rizzo also serves LP's header and footer, assets and Style Guide.

The main goal of Rizzo is to enable sharing of templates and assets across all LP applications. This helps us to reduce complexity and increase reusability. There is a write-up of the thought process behind Rizzo on the engineering blog.

Install & Get Dependencies

$ git clone git@github.com:lonelyplanet/rizzo.git && cd rizzo
$ cp .ruby-version.example .ruby-version
$ cp .ruby-gemset.example .ruby-gemset
$ cd .
$ bundle install
$ npm install
$ grunt setup # sets up jscs & jshint git precommit hook for contributors, and inits the private font submodule

Note for non Lonely Planet staff

Due to licensing restrictions imposed on our fonts you will have to manually create some empty files in order to run Rizzo locally:

$ touch app/assets/stylesheets/fonts/_font.sass
$ touch app/assets/stylesheets/fonts/_font_woff2.sass

Documentation

Full documentation about Rizzo and development guidelines is available at http://rizzo.lonelyplanet.com/documentation/general/development-principles.

Jasmine Tests

There is a suite of JavaScript tests in spec/javascripts. These tests are currently using Jasmine v1.x from grunt-contrib-jasmine v0.5.x.

In order to run the tests you'll need a few things installed with node.js.

npm install -g grunt-cli  # Install grunt globally
npm install # Install packages from package.json

You can now run the following to run the tests with grunt...

grunt ci

It should look like...

Run tests

grunt ci
grunt jshint
grunt jscs
bundle exec rspec
bundle exec cucumber
Something went wrong with that request. Please try again.