Node.js 6.x Blueprints

Create stunning web applications and Restful APIs from start to finish with Express, Loopback, MongoDB, and MySQL using this definitive guide
Preview in Mapt

Node.js 6.x Blueprints

Fernando Monteiro

Create stunning web applications and Restful APIs from start to finish with Express, Loopback, MongoDB, and MySQL using this definitive guide
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Node.js 6.x Blueprints Book Cover
Node.js 6.x Blueprints
$ 39.99
$ 28.00
Node.js Blueprints Book Cover
Node.js Blueprints
$ 32.99
$ 6.60
Buy 2 for $24.10
Save $48.88
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781785888434
Paperback376 pages

Book Description

Node.js is the most popular framework to create server-side applications today. Be it web, desktop, or mobile, Node.js comes to your rescue to create stunning real-time applications. Node.js 6.x Blueprints will teach you to build these types of projects in an easy-to-understand manner.

The key to any Node.js project is a strong foundation on the concepts that will be a part of every project. The book will first teach you the MVC design pattern while developing a Twitter-like application using Express.js. In the next chapters, you will learn to create a website and applications such as streaming, photography, and a store locator using MongoDB, MySQL, and Firebase.

Once you’re warmed up, we’ll move on to more complex projects such as a consumer feedback app, a real-time chat app, and a blog using Node.js with frameworks such as loopback.io and socket.io. Finally, we’ll explore front-end build processes, Docker, and continuous delivery.

By the end of book, you will be comfortable working with Node.js applications and will know the best tools and frameworks to build highly scalable desktop and cloud applications.

Table of Contents

Chapter 1: Building a Twitter-Like Application Using the MVC Design Pattern
Installing Node.js
Installing Express generator
Building the baseline
Changing the application's structure
Restructuring the views folder using partials
Adding templates for login, sign-up, and profile
Installing additional middleware
Refactoring the app.js file with the new middleware
Adding config and passport files
Creating a models folder and adding a user schema
Protecting routes
Creating the controllers folder
Running the application and adding comments
Summary
Chapter 2: Build a Basic Website Using MySQL Database
What we are building
Creating the baseline applications
Installing the Swig template engine
Refactoring the views folder
Creating a controllers folder
Adding partials files for head and footer
Installing and configuring Sequelize-cli
Editing the config.js file with database credentials
Creating a User scheme
Creating Band schema
Creating the database on MySql
Checking database tables
Creating the application controllers
Creating the application templates/views
Adding style to the application
Adding routes and a controller to the application
Adding database content
Creating a Bands form
Main difference between ODM (mongoose) and ORM (sequelize)
Summary
Chapter 3: Building a Multimedia Application
What we are building?
Starting with package.json
Adding baseline configuration files
Adding server folders
Configuring the app.js file
Creating the config.js file
Creating the controller's files
Creating model files
Creating view files
Creating the public folder content
Inserting images in the application using the upload form
Inserting video files into the application using the upload form
Important notes about image and video upload
Summary
Chapter 4: Dont Take a Photograph, Make It – An App for Photographers
What we are building
Creating the baseline applications
Creating the book controller
Adding a CSS framework to the application
Refactoring the views folder
Creating the .env.js file
How Cloudinary works
Running the application
Creating folders in the Cloudinary dashboard
URL transformation rendering
Summary
Chapter 5: Creating a Store Locator Application with MongoDB Geospatial Query
What we are building
Creating the baseline application
Using the Geolocation HTML5 API
Creating the application controller
Creating models
Creating the views template
Adding locations to MongoDB
Understanding Geospatial indexes on MongoDB
Checking the Geolocation application
Ordering points by distance
Summary
Chapter 6: Building a Customer Feedback App with a Restful API and Loopback.io
What we are building
Creating models with command line
Editing models after creation with command line
Creating a datasource through the command line
Connecting models to datasources
Using the API Explorer
Adding database relations
Dealing with LoopBack boot files
Consuming the API
Creating React components
Creating new feedbacks
Summary
Chapter 7: Building a Real–Time Chat Application with Socket.io
What we are building
Starting with a package.json file
Adding configuration files
Adding task manager files
Creating the app.js file
Creating the route file
Creating the application views
Installing frontend components with Bower
Creating the Socket.io events
Starting the chat application
Summary
Chapter 8: Creating a Blog with the Keystone CMS
What we are building
Installing Keystone framework
Creating the scaffold application
Running the Keystone  blog
Anatomy of the Keystone engine
Changing the default bootstrap theme
Modifying the KeystoneJS core template path
Adding the Gallery script
Extending the keystone.js core
Inserting content using control panel
Summary
Chapter 9: Building a Frontend Process with Node.js and NPM
What we are building
Creating the baseline application
Refactoring the application folder
Refactoring the client folder
Creating the AngularJS application
Adding content to the application
Creating the Building tasks
Using tasks with individual commands
Deploying to Heroku Cloud
Summary
Chapter 10: Creating and Deploying Using Continuous Integration and Docker
What we are building
What Continuous Integration means
Creating the baseline application
Running the application
Creating a GitHub or Bitbucket free account
Creating a Heroku free account
Creating a MongoLab free sandbox account
Initializing a git repository and pushing to GitHub
Creating a Heroku application using Heroku Dashboard
Creating a Codeship free account
Installing Docker and setting up the application
Summary

What You Will Learn

  • Explore MVC design pattern in Node.js
  • Build solid architectures by following test-driven development
  • Look beyond web applications and create your own desktop app with Node.js
  • Develop single page applications using Node.js with the RESTful APIs, MongoDB, and ORM
  • Master the Express framework and build a complete application with a real database
  • Create a real-time and fully functional online chat application with Socket.IO

Authors

Table of Contents

Chapter 1: Building a Twitter-Like Application Using the MVC Design Pattern
Installing Node.js
Installing Express generator
Building the baseline
Changing the application's structure
Restructuring the views folder using partials
Adding templates for login, sign-up, and profile
Installing additional middleware
Refactoring the app.js file with the new middleware
Adding config and passport files
Creating a models folder and adding a user schema
Protecting routes
Creating the controllers folder
Running the application and adding comments
Summary
Chapter 2: Build a Basic Website Using MySQL Database
What we are building
Creating the baseline applications
Installing the Swig template engine
Refactoring the views folder
Creating a controllers folder
Adding partials files for head and footer
Installing and configuring Sequelize-cli
Editing the config.js file with database credentials
Creating a User scheme
Creating Band schema
Creating the database on MySql
Checking database tables
Creating the application controllers
Creating the application templates/views
Adding style to the application
Adding routes and a controller to the application
Adding database content
Creating a Bands form
Main difference between ODM (mongoose) and ORM (sequelize)
Summary
Chapter 3: Building a Multimedia Application
What we are building?
Starting with package.json
Adding baseline configuration files
Adding server folders
Configuring the app.js file
Creating the config.js file
Creating the controller's files
Creating model files
Creating view files
Creating the public folder content
Inserting images in the application using the upload form
Inserting video files into the application using the upload form
Important notes about image and video upload
Summary
Chapter 4: Dont Take a Photograph, Make It – An App for Photographers
What we are building
Creating the baseline applications
Creating the book controller
Adding a CSS framework to the application
Refactoring the views folder
Creating the .env.js file
How Cloudinary works
Running the application
Creating folders in the Cloudinary dashboard
URL transformation rendering
Summary
Chapter 5: Creating a Store Locator Application with MongoDB Geospatial Query
What we are building
Creating the baseline application
Using the Geolocation HTML5 API
Creating the application controller
Creating models
Creating the views template
Adding locations to MongoDB
Understanding Geospatial indexes on MongoDB
Checking the Geolocation application
Ordering points by distance
Summary
Chapter 6: Building a Customer Feedback App with a Restful API and Loopback.io
What we are building
Creating models with command line
Editing models after creation with command line
Creating a datasource through the command line
Connecting models to datasources
Using the API Explorer
Adding database relations
Dealing with LoopBack boot files
Consuming the API
Creating React components
Creating new feedbacks
Summary
Chapter 7: Building a Real–Time Chat Application with Socket.io
What we are building
Starting with a package.json file
Adding configuration files
Adding task manager files
Creating the app.js file
Creating the route file
Creating the application views
Installing frontend components with Bower
Creating the Socket.io events
Starting the chat application
Summary
Chapter 8: Creating a Blog with the Keystone CMS
What we are building
Installing Keystone framework
Creating the scaffold application
Running the Keystone  blog
Anatomy of the Keystone engine
Changing the default bootstrap theme
Modifying the KeystoneJS core template path
Adding the Gallery script
Extending the keystone.js core
Inserting content using control panel
Summary
Chapter 9: Building a Frontend Process with Node.js and NPM
What we are building
Creating the baseline application
Refactoring the application folder
Refactoring the client folder
Creating the AngularJS application
Adding content to the application
Creating the Building tasks
Using tasks with individual commands
Deploying to Heroku Cloud
Summary
Chapter 10: Creating and Deploying Using Continuous Integration and Docker
What we are building
What Continuous Integration means
Creating the baseline application
Running the application
Creating a GitHub or Bitbucket free account
Creating a Heroku free account
Creating a MongoLab free sandbox account
Initializing a git repository and pushing to GitHub
Creating a Heroku application using Heroku Dashboard
Creating a Codeship free account
Installing Docker and setting up the application
Summary

Book Details

ISBN 139781785888434
Paperback376 pages
Read More

Read More Reviews

Recommended for You

Angular 2 By Example Book Cover
Angular 2 By Example
$ 35.99
$ 25.20
Mastering Node.js Book Cover
Mastering Node.js
$ 29.99
$ 6.00
Node.js Design Patterns Book Cover
Node.js Design Patterns
$ 29.99
$ 6.00
Node.js Design Patterns - Second Edition Book Cover
Node.js Design Patterns - Second Edition
$ 39.99
$ 28.00
AngularJS Web Application Development Cookbook Book Cover
AngularJS Web Application Development Cookbook
$ 29.99
$ 6.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40