
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.
Introduction to course and what will be covered
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.
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.
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.
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.
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.
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.
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.
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.
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.
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!!!