Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
app
assets/vendor
public
.gitignore
Gruntfile.js
README.md
app.js
package.json

README.md

Entourage: Shared Rendering with Rendr

rendr.png

It might be hard for you to eye-parse this example without walking through the introductory materials on Backbone in Chapter 7 first, so I suggest you read about MVC and Backbone in the book before going through this example.

To run this example you'll need to build the application with Browserify, I've set up Grunt for that, just like in ch05e11 Browserify + Common.JS. This time around, we'll use a different flow, which will also run the Node application for us, and then watch for changes.

grunt run

Once your Node server is running, you can see it in action just opening your favorite browser and pointing it at localhost:3000. Make sure you browse through the code! I'm sure you'll find interesting comments and advice in there!

open http://localhost:3000/

This sample shows how you could use Rendr to attain shared rendering in Node and the browser.

rendr-entourage.png

Browse the code and check out the comments to learn more!