O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Node.js, Express and MongoDB Dev to Deployment

Video Description

Learn by Example Building and Deploying Real-World Node.js Applications from Absolute Scratch

About This Video

  • An application where content creators can register and jot down and manage ideas for future videos
  • A much more sophisticated project. A social network for creating public and private stories.

In Detail

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.

Table of Contents

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