Sails.js Essentials

Get up to speed with Sails.js development with this fast-paced tutorial

Sails.js Essentials

Shahid Shaikh

1 customer reviews
Get up to speed with Sails.js development with this fast-paced tutorial
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783554539
Paperback108 pages

Book Description

Sails.js makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture.

This book will provide practical examples to get you started with Sails.js and get you develop production-ready apps in no time. We will take you from a Node.js web server and single threading system to a general MVC architecture. You will then learn to develop applications that you might be already familiar with using Sails.js. Finally, we will show you how to create a chat app and a to-do application, and improve code quality using JSHINT and JSCS.

Table of Contents

Chapter 1: Revisiting Node.js Concepts
Node.js architecture
Single-threaded system and its working
Event loop and non-blocking I/O model
Summary
Chapter 2: Developing Node.js Web Server
Working of web servers
HTTP operations and their use
Developing web server using HTTP module
HTTP headers and content-type
Developing web server using Express
Summary
Chapter 3: Introduction to Sails.js and MVC Concepts
Getting started with MVC concepts
Installing Sails.js
Understanding directory structure of Sails.js project
Adding database support
Configuring the Grunt task runner file with JSHint
Summary
Chapter 4: Developing REST API Using Sails.js
Why it is called REST?
The REST CRUD operation
Database design for REST API
Building REST API in Sails.js
Summary
Chapter 5: Build a Chat System Using Sails.js
Application architecture and flow
Creating a Sails.js app
Sails.js API for chat
Model definition and MySQL integration in the app
Sails.js controller to handle the chat operation
AngularJS app for client-side interaction
Running the application
Summary
Chapter 6: Building a Real-Time News Feed App Using Sails.js
Briefing Socket.IO
Using Socket in Sails.js
Discussing the database design of the app
Implementing the application
Summary
Chapter 7: Creating a TODO Single-Page Application
MongoDB support in Sails.js
Defining model for API
TODO app view design
Summary
Chapter 8: Sails.js Production Checklist
Sails.js migrate in detail
Sails.js security checklist
Sails.js deployment checklist
Sails.js hosting
Summary

What You Will Learn

  • Find out to quick-start Sails.js and develop production-ready apps
  • Understand how to apply the MVC model of software development in Node.js using Sails.js
  • Discover how to write quality code using Sails.js
  • Integrate third-party APIs and databases such Mongo and MySQL in Sails.js
  • Get to know the advantages and importance of the MVC framework in software development

Authors

Table of Contents

Chapter 1: Revisiting Node.js Concepts
Node.js architecture
Single-threaded system and its working
Event loop and non-blocking I/O model
Summary
Chapter 2: Developing Node.js Web Server
Working of web servers
HTTP operations and their use
Developing web server using HTTP module
HTTP headers and content-type
Developing web server using Express
Summary
Chapter 3: Introduction to Sails.js and MVC Concepts
Getting started with MVC concepts
Installing Sails.js
Understanding directory structure of Sails.js project
Adding database support
Configuring the Grunt task runner file with JSHint
Summary
Chapter 4: Developing REST API Using Sails.js
Why it is called REST?
The REST CRUD operation
Database design for REST API
Building REST API in Sails.js
Summary
Chapter 5: Build a Chat System Using Sails.js
Application architecture and flow
Creating a Sails.js app
Sails.js API for chat
Model definition and MySQL integration in the app
Sails.js controller to handle the chat operation
AngularJS app for client-side interaction
Running the application
Summary
Chapter 6: Building a Real-Time News Feed App Using Sails.js
Briefing Socket.IO
Using Socket in Sails.js
Discussing the database design of the app
Implementing the application
Summary
Chapter 7: Creating a TODO Single-Page Application
MongoDB support in Sails.js
Defining model for API
TODO app view design
Summary
Chapter 8: Sails.js Production Checklist
Sails.js migrate in detail
Sails.js security checklist
Sails.js deployment checklist
Sails.js hosting
Summary

Book Details

ISBN 139781783554539
Paperback108 pages
Read More
From 1 reviews

Read More Reviews