26,39 €
Get up to speed with Sails.js development with this fast-paced tutorial
This book is for web developers who want to build web apps with Sails.js.
Proficiency with JavaScript and Node.js is assumed, as well as familiarity with web development concepts. Familiarity with the MEAN (Mongo, Express, Angular, and Node) stack would be an added advantage.
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.
This practical and easy-to-follow yet comprehensive guide will help you get to grips with the Sails.js framework. Each topic is explained and placed in context, and for the more inquisitive, there are more details of the concepts used.
Sie lesen das E-Book in den Legimi-Apps auf:
Seitenzahl: 79
Veröffentlichungsjahr: 2016
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2016
Production reference: 1190216
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-453-9
www.packtpub.com
Author
Shaikh Shahid
Reviewer
Diogo Resende
Commissioning Editor
Kartikey Pandey
Acquisition Editor
Sonali Vernekar
Content Development Editor
Siddhesh Salvi
Technical Editor
Manthan Raja
Copy Editor
Vibha Shukla
Project Coordinator
Nidhi Joshi
Proofreader
Safis Editing
Indexer
Monica Ajmera Mehta
Graphics
Jason Monteiro
Kirk D'Penha
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda
Shaikh Shahid has been a product developer for over two years. He has the experience of working on Node.js for more than two years. He loves to spread the word about Node.js and its various packages via his programming blog. Shahid is also very interested in software architecture and design and loves to develop software system from the core.
When he is not playing with Node.js or helping people, he watches movies, reads books, or travels to Goa.
I'd like to thank my father, who was not aware of my experiments with Node.js and similar things during my college days, and supported me at every step. I'd also like to thank Ashutosh sir and Jane for giving me an opportunity to work professionally on this awesome technology.
Diogo Resende is a passionate developer, obsessed with perfection in everything he works on. He loves everything about the Internet of Things: the ability to connect everything together and always being connected to the world. He is also the author of Node.js High Performance, Packt Publishing.
Diogo Resende studied computer science and graduated in engineering, which deepened his knowledge about computer networking and security, software development, and cloud computing. In the past 10 years, he has embraced different challenges to develop applications and services to connect people with embedded devices around the world, creating a bridge between the ancient and uncommon protocols and the Internet of today.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Sails.js Essentials will take you through the basics of Node.js and developing production-ready application in the Sails.js framework. This book covers interesting application and their development that will guide you through the practical aspects of software and development.
Chapter 1, Revisiting Node.js Concepts, takes you through some core concepts of Node.js and its working before we dive into the Sails.js and MVC concepts.
Chapter 2, Developing Node.js Web Server, explain how servers are built in Node.js. Throughout this book, we will deal with various web servers. Sails.js has an internal web server that is already written for production.
Chapter 3, Introduction to Sails.js and MVC Concepts, covers MVC concepts in brief and begins with the Sails.js installation and configuration.
Chapter 4, Developing REST API Using Sails.js, comes up with tools to build REST API faster and easier. REST APIs are essential building blocks of any web application.
Chapter 5, Build a Chat System Using Sails.js, covers how to develop a chat system using Sails.js. A chat system is very generic application across web applications.
Chapter 6, Building a Real-Time News Feed App Using Sails.js, teaches how to develop basic news feed app using Sails.js. Facebook and Twitter have very nice news feeds, which are updated as soon as a new status is needed.
Chapter 7, Creating a TODO Single-Page Application, covers how to develop a TODO application using Sails.js. TODO application needs no introduction as it's a famous application.
Chapter 8, Sails.js Production Checklist, covers how to choose Sails.js hosting and some tweaks and settings before hitting the deploy button.
A computer with a generic operating system (Mac, Windows, or Linux) having capability to run Node.js and npm (node package manager).
This book targets web developers, who want to build web apps with Sails.js.
Proficiency with JavaScript and Node.js is assumed along with familiarity of web development concepts. Familiarity with the MEAN (MongoDB, Express, AngularJS, and Node.js) stack is an added advantage.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "You can validate the same concept using the setTimeout() function."
A block of code is set as follows:
Any command-line input or output is written as follows:
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Now, hit the Send button and see the response."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.
