Book description
Create stunning web applications and Restful APIs from start to finish with Express, Loopback, MongoDB, and MySQL using this definitive guide
About This Book
- Create stunning applications with Node.js from scratch, no matter the goal
- Discover a wide variety of applications you can effectively integrate third-party libraries and other front-end frameworks with Node.js
- Leverage all the new features introduced in Node.js 6.X
Who This Book Is For
This book caters to developers who are looking to build projects right from a simple website to more complex one such as a blog, chat application, a photography site, and a lot more. A Basic knowledge of JavaScript and Node.js would be extremely beneficial.
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
In Detail
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.
Style and approach
This is an easy-to-follow guide full of practical examples. This book takes a project-based approach and each chapter contains step-by-step instructions to create stunning applications across different application domains from scratch.
Publisher resources
Table of contents
-
Node.js 6.x Blueprints
- Node.js 6.x Blueprints
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
-
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
-
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
-
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
-
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
-
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
-
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
- 7. Building a Real–Time Chat Application with Socket.io
-
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
- 9. Building a Frontend Process with Node.js and NPM
-
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
Product information
- Title: Node.js 6.x Blueprints
- Author(s):
- Release date: August 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785888434
You might also like
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd Edition
Through a recent series of breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Angular for Enterprise-Ready Web Applications - Second Edition
Revised and updated second edition of the bestselling hands-on guide to building enterprise-ready web apps using …
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition
Through a series of recent breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Modern Full-Stack Development: Using TypeScript, React, Node.js, Webpack, and Docker
Explore what React, Node, TypeScript, Webpack, and Docker have to offer individually, and how they all …