By Mike McNeil, Irl Nathan

Node.js has speedily turn into a practicable selection for large-scale net purposes that in the past depended on Java, Hypertext Preprocessor, or Rails. Sails.js is a contemporary MVC framework for Node that significantly simplifies back-end internet improvement. Sails offers complete aid for facts entry, real-time programming with net sockets, enterprise-caliber defense, and glossy improvement workflow styles. It additionally bargains strong productiveness positive aspects like swift API improvement through Sails blueprints, job automation through node-machines, and straightforward integration with front-end frameworks like Ember and Angular.

Sails.js in Action is a finished advisor to development enterprise-capable internet functions utilizing Node and Sails. Written via the creators of the Sails.js framework, this ebook conscientiously introduces each one proposal, process, and gear with real-world examples and crystal-clear causes. Readers stick with perfectly-paced, gap-free guideline as they learn how to construct the again finish of a standard unmarried web page net program. As readers hone talents, they discover complex beneficial properties like providers, hooks, and dossier uploads. alongside the way in which, they learn how to absolutely comprehend Node's asynchronous programming version and the syntax and conventions used to enforce it.

Purchase of the print e-book encompasses a unfastened publication in PDF, Kindle, and ePub codecs from Manning Publications.

Show description

Read or Download Sails.js in Action PDF

Similar object-oriented software design books

Java & XML: Solutions to Real-World Problems

With the XML ''buzz'' nonetheless dominating speak between web builders, there is a actual have to methods to minimize during the hype and positioned XML to paintings. Java & XML exhibits tips on how to use the APIs, instruments, and tips of XML to construct real-world purposes. the result's code and knowledge which are moveable. This moment variation provides chapters on complex SAX and complicated DOM, new chapters on cleaning soap and knowledge binding, and new examples all through.

Data Structures for Computational Statistics

Because the starting of the seventies desktop is on the market to take advantage of programmable pcs for numerous initiatives. in the course of the nineties the has built from the massive major frames to private workstations. these days it's not in simple terms the that's even more strong, yet workstations can do even more paintings than a prime body, in comparison to the seventies.

Object-Oriented Analysis, Design and Implementation: An Integrated Approach

The second one variation of this textbook contains revisions in line with the suggestions at the first version. In a brand new bankruptcy the authors supply a concise creation to the rest of UML diagrams, adopting an analogous holistic technique because the first version. utilizing a case-study-based strategy for supplying a finished creation to the foundations of object-oriented layout, it includes:A sound footing on object-oriented thoughts akin to sessions, gadgets, interfaces, inheritance, polymorphism, dynamic linking, and so forth.

Extra resources for Sails.js in Action

Example text

Just run sails generate api dentist and you'll get an API that lets you search, paginate, sort, filter, create, destroy, update, and associate dentists. Since these blueprint actions are built on the same underlying technology as Sails, they also work with WebSockets and any supported database out of the box. � Use any popular database - Sails bundles a powerful ORM, Waterline, which provides a simple data access layer that just works, no matter what database you're using. In addition to a plethora of community projects, officially supported adapters exist for MySQL, MongoDB, PostgreSQL, Redis, and local disk storage.

If you aren’t sure which category your application falls into, don’t worry: the concepts overlap. A pure API is to a hybrid web application as a square is to a rectangle. We’ll spend the first half of this book building a pure API, and the remaining chapters extending and maintaining it as it transitions into a hybrid web application. 3 So why Sails? � 100% JavaScript - Like other MVC frameworks, Sails is built with an emphasis on developer happiness and a convention-over-configuration philosophy.

Recall that in our earlier example we made an AJAX POST request to /user/signup. Sails “heard” the request via a built-in module called the router ① . The router recognized the particular request because the request matched ② the configured route address of an explicit route, and then that triggered an action ③ . 7 The router matched the request as part of an explicit route. In Sails, explicit routes are configured in a JavaScript file, where they are written as a dictionary with a key for each unique route.

Download PDF sample

Rated 4.47 of 5 – based on 31 votes