Since I tend to be a glutton for punishment, I have decided to devote the next several blog post to a series on making a scalable application using Sails.js on the back-end and Angular on the front-end.

So, Why Make A Series On This?

There are a lot of really good client-side and server-side JavaScript frameworks popping up, but there are not many in-depth articles on how they fit together. This series will look at a very specific stack and how it can be used to create an application. Let me break down the main components of the stack.



Sails is a server-side MVC framework for Node. The architecture is very similar to Ruby on Rails, which is probably why they chose a name that rhymes with Rails. One of the coolest things about Sails is that it has built into it, which makes communicated with the client-side in real time much easier.



Angular is a client-side MVC framework created by Google. Angular is great at driving views with data and is extremely testable.



Require is a framework that lets you write modular code for the client-side. All of your modules pull in the modules that they need to function properly and the best part is that you only need to include one JavaScript file in your HTML template, everything else is retrieved with JavaScript.

The Outline

As I post the new articles, the links on this outline will be filled in, so this post can serve as a jumping off point for everything else. In the meantime, here is what we will cover:

  1. Starting The Sails Project
  2. Sails Server-Side Views
  3. Adding dependencies
  4. Angular Controllers
  5. Sails Models
  6. Syncing With The Server

This is going to be a fun series to write and I hope you have as much fun as me reading it!

comments powered by Disqus