Node.js, Express and MongoDB Dev to Deployment

Video description

You will learn how to structure your Node/Express applications, create data models, relate data, display views, authenticate users, create helpers and much more. Project 1 - Vidjot An application where content creators can register and jot down and manage ideas for future videos.The first project is quite simple as it is meant to be an introduction where the author explains everything about Express routing, middleware, templates, Mongoose, and so on. We implement Passport and a local strategy where we store emails as usernames and encrypted passwords in our database. We will prepare and deploy this app to Heroku and add a domain name. Project 2 - Storybooks: A much more sophisticated project. A social network for creating public and private stories. This app uses a Google OAuth 2.0 strategy for authentication. Users can login and create stories which can be set to public or private. They can also choose if comments are allowed to be posted. We will create a dashboard for users to manage their stories. We will create helpers for authentication and access control as well as handlebars template helpers. We will prepare and deploy this app to Heroku and add a domain name.

What You Will Learn

  • Build high quality applications built with Node, Express and MongoDB
  • Implement authentication including local & Google OAuth strategies
  • Create data models with Mongoose ODM
  • Prepare & deploy apps to production with Heroku
  • Learn ES6 concepts like arrow functions, template strings & promises

Audience

Anyone that wants to learn how to build and deploy apps built with Node, Express and MongoDB

About The Author

Brad Traversy: Brad Traversy has been programming for around 12 years and teaching for almost 5 years. He is the owner of Traversy Media, which is a successful web development YouTube channel and specializes in everything from HTML5 to front-end frameworks such as Angular as well as server-side technologies such as Node.js, PHP, and Python. Brad has mastered explaining overly complex topics in a simple manner that is understandable. Invest in your knowledge by watching Brad’s courses.

Table of contents

  1. Chapter 1 : Course Introduction
    1. Welcome To the Course
    2. Project Files Questions
  2. Chapter 2 : Setting Up
    1. Dev Environment Setup
    2. EWhat Exactly Is Node.js?
    3. Installing Exploring Node.js
    4. Install MongoDB Locally
    5. Sign Up For mLab
    6. Create a Heroku Account
  3. Chapter 3 : VidJot Project Start Express Fundamentals
    1. VidJot Project Introduction
    2. Install Initialize Express
    3. Basic Routing Nodemon
    4. Express Middleware
    5. Working with Templates
    6. Bootstrap Partials
  4. Chapter 4 : Mongoose Local MongoDB
    1. Install Mongoose Connect
    2. Create the Idea Model
    3. Add Idea Form
    4. Server Side Form Validation
    5. Saving Idea to MongoDB
    6. Fetching Ideas from MongoDB
    7. Edit Idea Form
    8. Update Idea Data
    9. Remove Idea Data
    10. Flash Messaging
  5. Chapter 5 : Local Authentication with Passport
    1. A Look at Passport
    2. The Express Router
    3. Login Register Pages
    4. Register Form Validation
    5. User Registration
    6. Hooking Up a Local Strategy
    7. Finishing the Login Functionality
    8. Logout Function
    9. Protecting Routes
    10. Access Control
  6. Chapter 6 : VidJot Prep Deployment
    1. Preparing Our App for Deployment
    2. Deploying To Heroku
    3. Adding a Domain Name
  7. Chapter 7 : StoryBooks Project Start Google OAuth
    1. StoryBooks App Introduction
    2. Initial Setup Heroku Push
    3. Creating Our Google OAuth Credentials
    4. Creating Our Google Strategy
    5. Auth Callback Remote App
    6. Creating the User Model
    7. Saving the Authenticated User
    8. Adding Session Authentication
  8. Chapter 8 : Creating Our UI
    1. Index Routes Handlebars
    2. Header Navbar
    3. Side Navigation
    4. Dashboard Stories Routes
    5. Add Button Footer
    6. Restricting Routes
    7. Add Story Form
  9. Chapter 9 : Stories the Database
    1. Create the Story Model
    2. Save Story to MongoDB
    3. Fetch Display Public Stories
    4. Handlebars Helpers
    5. Show Template Format Dates
    6. Creating the Dashboard
    7. Edit Form Select Helper
    8. Updating Stories
    9. Deleting Stories
  10. Chapter 10 : Comments, Access Control Cleanup
    1. Add Comment Functionality
    2. Listing Comments
    3. Edit Access Control
    4. Get Stories from Specific Users
    5. Block Private Story Details
  11. Chapter 11 : StoryBooks Prep Deployment
    1. Prep Production Key Variables
    2. Deploy Test
    3. Domain Update Google OAuth Creds

Product information

  • Title: Node.js, Express and MongoDB Dev to Deployment
  • Author(s): Brad Traversy
  • Release date: May 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789535952