Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Node.js Blog App with Ejs & MongoDB
Rating: 4.3 out of 5(6 ratings)
30 students

Node.js Blog App with Ejs & MongoDB

Building apps with Node.js and MongoDB, acquiring EJS template
Created byStephen Brooks
Last updated 12/2021
English
English [Auto],

What you'll learn

  • Cover the basics of JavaScript
  • Build apps with EJS and structure it for ease of coding
  • use NodeJs for creating server and routing
  • Connect to MongoDB for sending and receiving data within our app

Course content

1 section33 lectures5h 3m total length
  • JavaScript Introduction & Starting At very beginning9:14

    Explore how JavaScript started, and learn basics like variables (var, let, const), strings, numbers, booleans, and template literals with backticks, plus console output and string concatenation.

  • Introduction1:06

    Introduction to course and what will be covered

  • Necessities & setting up5:49

    Set up your Node.js blog app with EJS and MongoDB by scaffolding folders like models, controllers, routes, and public assets, creating a server file, and configuring the database connection.

  • JavaScript Functions6:40
  • JavaScript - Working with Arrays4:53
  • JavaScript - Working with Objects8:41
  • Req & res with pages7:44
  • JavaScript - Logical Statements7:11
  • Getting into Node.js4:35
  • Node - Looking at Req & Res5:31
  • More in Node req, res9:12
  • Node Express6:47
  • Refactoring to EJS8:32
  • EJS Scaffolding3:47

    Learn how to scaffold ejs templates with layouts, set up a navigation system and header for a node.js blog app, and connect to mongodb to perform CRUD operations.

  • Using MDB5 for Layouts3:52

    Use MDB5 layouts in a node.js blog app with EJS and MongoDB, integrating bootstrap; font awesome, and Google fonts via CDN to render header and footer, carousel, dropdowns, and cards.

  • Intro to MongoDB9:47
  • Inserting Date - Create (CRUD)11:16
  • Read, Update & Delete (CRUD)6:32

    Learn to perform read, update, and delete operations on a MongoDB collection using Node.js and Mongoose, including finding by id, handling errors, and reflecting changes in the console.

  • Sending Post10:02
  • Receiving Post10:31
  • Single Post9:59
  • Recent Post5:06
  • Uploading images & Middleware11:21

    Upload images to a blog post using Express middleware and file upload, store images in the database and filesystem, and manage posts with Node.js and MongoDB.

  • MVC with EJS7:26
  • Validation with MiddleWare15:01

    Validate user input with middleware during registration, hash passwords with bcrypt before saving via a Mongoose pre-save hook, and enforce unique usernames and emails with front-end error feedback.

  • Registeration15:01

    Build a Node.js blog app with EJS and MongoDB by creating controllers for posts, about, and home, plus a slug-based post view and user registration with validation.

  • User Auth15:01
  • Express-Sessions14:18
  • Conditional Display13:16

    Master conditional display in a node.js blog app by showing create post and logout when logged in, and register/login for guests, using express middleware and sessions.

  • Unique Users12:22
  • Errors On Form Submission {Required}15:01

    Display form validation errors in a Node.js blog app by mapping mongoose validation errors to the view, storing them in session, and rendering them on redirect with ejs.

  • Using WYSIWG text editor12:54
  • Deployment & Overview15:01

Requirements

  • basic knowledge of html, css and javascript is helpful but not necessary

Description

In this course I will start off with covering the basics of JavaScript, and then go into Node.js, where we will create our first server. Upon doing that, we will handle req and res to our pages. Later we will refactor them to EJS and reconfigure the layout to make it easier for coding and condense the code on each file. After that, we connect to MongoDB and cover the CRUD method in the app where we send commands to the backend in a test.js file and see the results in our console.


We connect the backend to our app to show data for our blog post, and put our code into a controllers, models, and middleware folders to organize our code. We create a user sign up - login and logout function, and where the user must be validated to created a post. Lastly, we add a text editor for the create post page and deploy it to Heroku. Prior to deployment, I cover what were on the files we created in case you may have missed anything or you are getting errors.


After taking this course you will have an understanding of how to engage CRUD operations with Node and MongoDB, then create your own apps from scratch. Whenever you do create one, please share with me, I'd love to see how it looks!!!

Who this course is for:

  • All audiences - beginners, backend developers, developers from other languages and college student needing to learn the basic structure of a full stack