Node.js has rapidly become a viable choice for large-scale web applications that previously relied on Java, PHP, or Rails. Sails.js is a modern MVC framework for Node that radically simplifies back-end web development. Sails provides full support for data access, real-time programming with web sockets, enterprise-caliber security, and modern development workflow patterns. It also offers powerful productivity features like rapid API development via Sails blueprints, task automation via node-machines, and easy integration with front-end frameworks like Ember and Angular.
Sails.js in Action is a comprehensive guide to building enterprise-capable web applications using Node and Sails. Written by the creators of the Sails.js framework, this book carefully introduces each concept, technique, and tool with real-world examples and crystal-clear explanations. Readers follow perfectly-paced, gap-free instruction as they learn to build the back end of a typical Single Page Web Application. As readers hone skills, they explore advanced features like services, hooks, and file uploads. Along the way, they learn to fully understand Node's asynchronous programming model and the syntax and conventions used to implement it.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Table of Contents
Chapter 1 Getting started
Chapter 2 First steps
Chapter 3 Using Static Assets
Chapter 4 Using The Blueprint API
Chapter 5 Custom Back-End Code
Chapter 6 Using models
Chapter 7 Custom actions
Chapter 8 Server-Rendered Views
Chapter 9 Authentication and Sessions
Chapter 10 Policies and Access Control
Chapter 11 Refactoring
Chapter 12 Embedded data and associations
Chapter 13 Ratings, Followers, and Search
Chapter 14 Real time with WebSockets
Chapter 15 Deployment, Testing, and Security
Appendixe A A brief history of Sails