Creating An Application With Sails, Angular and Require.js (part 1)

code | 4-25-2014
This is part 1 of the Creating An Application With Sails, Angular and Require.js blog series. It is recommended that you start here. Once you are done reading this, please navigate to the next post below:

Next Post In This Series

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!

About the Author

Tyson Cadenhead is a Senior JavaScript Developer at Aloompa. He lives in the greater Nashville area. His specialty is writing large, scalable JavaScript applications on the client and server side. His passions are for good design, usability, and clean, reusable code.

Tags: sailsjs angular

Related Posts:

comments powered by Disqus

Don't Miss Anything!

Sign Up For My Email Newsletter

I Wrote a Book!

Popular Posts