Node. js

Saved in:
Bibliographic Details
Main Author: Buckler, Craig
Other Authors: Hartikainen, Jani, Green, M. David, Omole, Olayinka, Bouchefra, Ahmed, Brown, Mark, Sauve, Paul, M, Manjunath
Format: Electronic eBook
Language:English
Published: Sebastopol : SitePoint Pty, Limited, 2018.
Subjects:
Online Access: Full text (Wentworth users only)
Local Note:ProQuest Ebook Central
Table of Contents:
  • Node.js: Related Tools & Skills; Notice of Rights; Notice of Liability; Trademark Notice; About SitePoint; Preface; Who Should Read This Book?; Conventions Used; Code Samples; Tips, Notes, and Warnings; Chapter 1: Unit Test Your JavaScript Using Mocha and Chai; by Jani Hartikainen; What Is Unit Testing; Setting up the Tools; Testing on Node.js vs Testing in the Browser; Setting up a Directory Structure; Setting up a Test Runner; The Basic Test Building Blocks; Writing the Test Code; Running the Test; The Test Results; Putting It Together; Running the Tests in the Browser; Live Code!
  • Live Code!Live Code!; Live Code!; Running the Tests on Node; What's Next?; Chapter 2: An Introduction to Functional JavaScript; by M. David Green; Imperative JavaScript; Object-Oriented JavaScript; Functional JavaScript; Start Thinking Functionally; Chapter 3: An Introduction to Gulp.js; by Craig Buckler; That Sounds Scarily Complicated!; Task Runners: the Options; What About Gulp 4?; Step 1: Install Node.js; For Windows Users; For Linux Users; Step 2: Install Gulp Globally; Step 3: Configure Your Project; For Node.js Projects; Git Users; Following Along on Unix; Step 4: Install Gulp Locally
  • Alternative Deployment OptionsStep 4: Create a Gulp Configuration File; ES6; Step 5: Create Gulp Tasks; Image Task; HTML Task; JavaScript Task; CSS Task; Step 6: Automate Tasks; Step 7: Profit!; Chapter 4: A Side-by-side Comparison of Express, Koa and Hapi.js; by Olayinka Omole; Background; Express.js; Koa; Hapi.js; Philosophy; Compatibility; Express.js; Koa; Hapi.js; Starting a Server; Express.js; Koa; Hapi.js; Routing; Express.js; Koa; Hapi.js; Middleware; Express.js; Koa; Hapi.js; Usage; Conclusion; Chapter 5: An Introduction to Sails.js; by Ahmed Bouchefra; Main Features
  • Sails.js vs Express.jsThe Waterline ORM/ODM; Getting Started with Sails.js; Prerequisites; Installing the Sails.js CLI; Scaffolding a Sails.js Project; The Anatomy of a Sails.js Project; Running your Sails.js Project; Creating Waterline Models; Sails.js Controllers; Testing with Postman; Routing in Sails.js; Conclusion; Chapter 6: Building Apps and Services with the Hapi.js Framework; by Mark Brown; The Project; The Starting Point; The Route Handler; The Model Layer; Our RESTful Actions; Testing Our API Is as Easy as HTTPie; Defensively Check for null Values and Return an Error
  • Extend Sequelize. Model to throw an ErrorPath Parameters; The Request Object; Adding a Second Model; Authentication with JWT; Generating a JWT; Validation with joi; Who Is Consuming this API?; Chapter 7: Create New Express.js Apps in Minutes with Express Generator; by Paul Sauve; What is Express?; Getting Started; Options; Application Structure; bin; public; routes; views; app.js; A Useful Tool; Chapter 8: An Introduction to MongoDB; by Manjunath M; What's MongoDB?; Installing MongoDB; Installing MongoDB on macOS using Homebrew; Basic Database Operations; MongoDB CRUD Operations