Sails.js essentials : get up to speed with Sails.js development with this fast-paced tutorial /
Chapter 8: Sails.js Production Checklist; Sails.js migrate in detail; Sails.js security checklist; CSRF; CORS; DDOS; XSS; Sails.js deployment checklist; Configure production environment setting; Run app on port 80 if there is no proxy; Configure database settings; Estimate the traffic from all the e...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2016.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Revisiting Node.js Concepts; Node.js architecture; V8; Event driven I/O
- libuv; Single-threaded system and its working; Working of libuv
- core of Node.js; Multi-threading versus single-threading; Event loop and non-blocking I/O model; Importance of event loop; Working of event loop; Summary; Chapter 2: Developing Node.js Web Server; Working of web servers; HTTP operations and their use; Create; Read; Update; Delete; Developing web server using HTTP module
- HTTP headers and content-typeDeveloping web server using Express; Using Express to develop web server; Routers and middleware; Summary; Chapter 3: Introduction to Sails.js and MVC Concepts; Getting started with MVC concepts; Model; View; Controller; Installing Sails.js; Understanding directory structure of Sails.js project; The assets directory; The views directory; The node_modules directory; The api directory; The config directory; Adding database support; Configuring MySQL database with Sails.js; config/connections.js; config/models.js; Configuring MongoDB database with Sails.js
- Config/connections.jsconfig/models.js; 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; config/connections.js; config/models.js; Discussing migrate key; Running our code; Create new message; Read the message; Update the message; Delete the message; Defining custom controller; api/controllers/MessageController.js; Summary; Chapter 5: Build a Chat System Using Sails.js; Application architecture and flow
- Creating a Sails.js appSails.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; /assets/js/app.js; /assets/js/services/ToDoService.js