Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ember.js node and nginx

ember.js node and nginx

Problem

I want to serve static webpages for a facebook application via Nginx, enable interactivity via ember.js, and update pages with custom data via rest api on Node. Is this a logical set up?

Problem courtesy of: user1110207

Solution

That sounds perfect. Nginx is the fastest for serving files, Ember.js (or Backbone or JavaScriptMVC or Spine) is a good solution for your front-end JS structuring, and Node has a low memory footprint and is really fast (not to mention you can share code between front-end and back-end OR that you code is written in the same language everywhere, be it front-end or back-end).

I would suggest Express.js for your REST stuff, it's a Sinatra inspired framework.

For other Node modules, check here.

Solution courtesy of: alessioalex

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

ember.js node and nginx

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×