1.

Record Nr.

UNINA9910300469403321

Autore

Mardan Azat

Titolo

Pro Express.js [[electronic resource] /] / by Azat Mardan

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2014

ISBN

1-4842-0037-3

Edizione

[1st ed. 2014.]

Descrizione fisica

1 online resource (352 p.)

Collana

The expert's voice in web development

Disciplina

004

Soggetti

Computer programming

Software engineering

Web Development

Software Engineering/Programming and Operating Systems

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Description based upon print version of record.

Nota di contenuto

""Contents at a Glance""; ""Contents""; ""About the Author""; ""About the Technical Reviewers""; ""Foreword""; ""Acknowledgments""; ""Introduction""; ""Part i: Getting Started""; ""Chapter 1: Starting with Express.js""; ""How Express.js Works""; ""Third-Party Dependencies""; ""Instantiations""; ""Connecting to Databases""; ""Configuring Express.js App Settings""; ""Defining Middleware""; ""Defining Routes""; ""Starting the App""; ""Express.js Installation""; ""Express.js Generator In stallation""; ""Summary""; ""Chapter 2: Hello World Example""; ""Getting Started""; ""Using Request Handlers""

""Outputting Terminal Messages""""Enhancing the App""; ""Generator Commands""; ""Generating a Skeleton Express.js app""; ""Reviewing the Application�s Structure""; ""App.js""; ""MVC Structure and Modules""; ""Watching for File Changes""; ""Summary""; ""Part II: Deep API Reference""; ""Chapter 3: Configuration, Settings, and Environments""; ""Configuration""; ""app.set(�) and app.get(�)""; ""app.enable(�) and app.disable(�)""; ""app.enabled(�) and app.disabled(�)""; ""Settings""; ""env""; ""view cache""; ""view engine""; ""views""; ""trust proxy""; ""jsonp callback name""

""json replacer and json spaces""""case sensitive routing""; ""strict routing""; ""x-powered-by""; ""etag""; ""query parser""; ""subdomain offset""; ""Environments""; ""Summary""; ""Chapter 4: Working with



Middleware""; ""Applying Middleware""; ""Essential Middleware""; ""compression""; ""morgan""; ""body-parser""; ""urlencoded()""; ""cookie-parser""; ""express-session""; ""csurf""; ""express.static()""; ""connect-timeout""; ""errorhandler""; ""method-override""; ""response-time""; ""serve-favicon""; ""serve-index""; ""vhost""; ""connect-busboy""; ""Other Middleware""; ""Summary""

""Chapter 5: Template Engines and Consolidate.js""""How to Use Template Engines""; ""app.engine()""; ""Uncommon Libraries""; ""Template Engine Choices""; ""Jade""; ""Haml.js""; ""EJS""; ""Handlebars.js""; ""Hogan.js Adapters""; ""Combyne.js""; ""Swig""; ""Whiskers""; ""Blade""; ""Haml-Coffee""; ""Webfiller""; ""Consolidate.js""; ""Summary""; ""Chapter 6: Parameters and Routing""; ""Parameters""; ""app.param()""; ""Routing""; ""app.VERB()""; ""app.all()""; ""Trailing Slashes""; ""Router Class""; ""router.route(path)""; ""Request Handlers""; ""Summary""; ""Chapter 7: Express.js Request Object""

""request.query""""request.params""; ""request.body""; ""request.route""; ""request.cookies""; ""request.signedCookies""; ""request.header(�) and request.get(�)""; ""Other Attributes and Methods""; ""Summary""; ""Chapter 8: Express.js Response Object""; ""response.render(�)""; ""response. locals""; ""response.set(�)""; ""response.status(�)""; ""response.send(�)""; ""response.json(�)""; ""response.jsonp(�)""; ""response.redirect(�)""; ""Other Response Methods and Properties""; ""Streams""; ""Summary""; ""Chapter 9: Error Handling and Running an App""; ""Error Handling""

""Running an App""

Sommario/riassunto

Pro Express.js is for the reader who wants to quickly get up-to-speed with Express.js, the flexible Node.js framework. Author Azat Mardan clearly explains how to start developing with Express.js with a basic 'Hello World', and then delves into a deep API reference, before looking at common and abstract development problems. Lastly, you will learn how to build a series of real-world apps in order to cement your knowledge. In order to get the best from this book, you will be familiar with Node.js scripts and able to install packages using npm. In the deep API reference, each aspect of the Express.js API is explained clearly with a simple exercise to demonstrate its usage. This includes configuration, settings and environments; different middleware and its uses; templating engines; extracting parameters and routing; request and response; error handling; and running an app. In the next part you'll delve into abstraction, streams, authentication, multithreading, Socket.io, security, and more complex modules. You will also learn about smaller frameworks built using Express.js, such as Sails.js, and Derby. Finally you'll build real-world apps including a REST API, Todo App, and Instagram gallery. Express.js is used by a range of well-known companies such as MySpace and Storify, and it's becoming more and more likely that it'll be a required skill for new developers. With this book you can skip learning via complicated documentation, and get the information from a developer who's been using Express.js for long enough to explain things well. Add Pro Express.js to your library today.