Cargando…

Your First Week With Node.js, 2nd Edition /

While there have been quite a few attempts to get JavaScript working as a server-side language, Node.js (frequently just called Node) has been the first environment that's gained any traction. It's now used by companies such as Netflix, Uber and Paypal to power their web apps. Node allows...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Hibbard, James (Autor), Buckler, Craig (Autor), Brown, Mark (Autor), Jacques, Nilson (Autor), Kolce, James (Autor), Orac, Paul (Autor), Green, M. (Autor), Rappl, Florian (Autor)
Autor Corporativo: Safari, an O'Reilly Media Company
Formato: Electrónico eBook
Idioma:Inglés
Publicado: SitePoint, 2020.
Edición:2nd edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Your First Week With Node.js, 2nd Edition
  • Notice of Rights
  • Notice of Liability
  • Trademark Notice
  • About SitePoint
  • About Craig Buckler
  • Preface
  • Who Should Read This Book?
  • Conventions Used
  • Code Samples
  • Tips, Notes, and Warnings
  • Supplementary Materials
  • Chapter 1: What Is Node and When Should I Use It?
  • by James Hibbard
  • What Is Node.js?
  • Node Is Built on Google Chrome's V8 JavaScript Engine
  • How Do I Install Node.js?
  • Node Binaries vs Version Manager
  • "Hello, World!" the Node.js Way
  • Node.js Has Excellent Support for Modern JavaScript
  • Introducing npm, the JavaScript Package Manager
  • Installing a Package Globally
  • Installing a Package Locally
  • Working with the package.json File
  • What Is Node.js Used For?
  • Node.js Lets Us Run JavaScript on the Server
  • The Node.js Execution Model
  • Are There Any Downsides?
  • "Hello, World!"-Server Version
  • What Kind of Apps Is Node.js Suited To?
  • What Are the Advantages of Node.js?
  • Other Uses of Node
  • Conclusion
  • Chapter 2: Build a Simple Page Counter Service with Node.js
  • by Craig Buckler
  • Prerequisites
  • Project Overview
  • Page Hit v1.0: In-memory Storage
  • Step 0 (optional): Source Control
  • Step 1: Initialization
  • Step 2: Main File (index.js)
  • Step 3: Additional Modules
  • Step 4: Test Page
  • Page Hit v2.0: File Storage
  • Node.js File System API
  • Step 1: File Utilities
  • Step 2: Modify lib/pagehit.js
  • Step 3: Test
  • Job Done?
  • Chapter 3: Understanding module.exports and exports in Node.js
  • by James Hibbard
  • Different Module Formats
  • Requiring a Module
  • Creating and Exporting a Module
  • Exporting Multiple Methods and Values
  • Variations in Syntax
  • Exporting a Default Value
  • What's the Difference Between module.exports and exports?
  • So Which One Should I use?
  • Conclusion
  • Chapter 4: Forms, File Uploads and Security with Node.js and Express
  • by Mark Brown and James Hibbard
  • Setup
  • Displaying the Form
  • Form Submission
  • Validation and Sanitization
  • Validation
  • Sanitization
  • The Valid Form
  • Sending Email with Node
  • Security considerations
  • TLS over HTTPS
  • Wear Your Helmet
  • Cross-site Request Forgery (CSRF)
  • Cross-site Scripting (XSS)
  • File Uploads
  • Populating File Inputs
  • Uploading Files with Node
  • Thanks for Reading
  • Chapter 5: Working with Databases in Node
  • by Craig Buckler
  • Evaluate CMS Templates and Plugins
  • Reduce Client-side Code
  • Optimize JavaScript Code
  • Use JavaScript Sparingly
  • Avoid Long-running Tasks
  • Bind Events Sparingly
  • Analyze Modified Code
  • Modify the DOM Effectively
  • Cache Regularly Used Nodes
  • Minimize Reflows
  • Batch-update Styles
  • Batch-update Elements
  • Use requestAnimationFrame
  • Consider Progressive Rendering
  • Use Server-side Rendering
  • Do You Need a JavaScript or CSS Framework?
  • Use a Static Site Generator
  • Use a Build System