Learn The MERN Stack - Express & MongoDB Rest API - Best Webhosting

Thanks! Share it with your friends!

URL

You disliked this video. Thanks for the feedback!

Sorry, only registred users can create playlists.

ULTRAFAST, CHEAP, SCALABLE AND RELIABLE! WE STRONGLY RECOMMEND ACCU WEB HOSTING COMPANY

Learn The MERN Stack - Express & MongoDB Rest API

Watch Web Development Traversy Media Video: Learn The MERN Stack - Express & MongoDB Rest API.
In this video, we will create a RESTful API from scratch with Node.js, Express, MongoDB and Mongoose.

💻 Code:
https://github.com/bradtraversy/mern-tutorial

👇 Full React 2022 Course With $12.99 promo:
https://www.udemy.com/course/react-front-to-back-2022/?couponCode=REACTF2BFEB2022

👇 Website & Courses:
https://traversymedia.com

💖 Show Support
Patreon: https://www.patreon.com/traversymedia
PayPal: https://paypal.me/traversymedia

👇 Follow Me On Social Media:
Twitter: https://twitter.com/traversymedia
Instagram: https://www.instagram.com/traversymedia
Linkedin: https://www.linkedin.com/in/bradtraversy

Timestamps:
0:00 - Intro
2:41 - How a REST API Works
6:13 - Set up the Project Folder
10:11 - Initialize GIT & Commit
10:46 - Basic Express Server
12:12 - Environment Variables
13:28 - First Route
15:51 - Routes File
20:34 - Creating a Controller
24:44 - Connecting Controller Functions
26:40 - Accepting Body Data
28:41 - Error & Exception Handling
34:21 - Express Async Handler
36:46 - Create MongoDB Database
42:02 - Connect with Mongoose
47:02 - Create a Model
49:35 - Get Goals
51:30 - Create Goal
52:56 - Update Goal
55:22 - Delete Goal

Published:
Category: Web Development Traversy Media
43 Views

Related Videos

  • Popular Learn the MERN Stack [2] - Express API & MongoDB

    Learn the MERN Stack [2] - Express API & MongoDB

    by Best Webhosting Added 103 Views / 0 Likes

    In this video we will setup the initial backend of our MERN application using Express JS with Mongoose which is an ODM to interact with our MongoDB database. Code: https://github.com/bradtraversy/mern_shopping_list MERN Stack Front To Back Udemy Course: https://www.udemy.com/mern-stack-front-to-back/?couponCode=TRAVERSYMEDIA • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymed

  • Popular Full Stack Vue.js, Express & MongoDB [1] - Express API

    Full Stack Vue.js, Express & MongoDB [1] - Express API

    by Best Webhosting Added 105 Views / 0 Likes

    In this 3 part series we will build a small app using Vue.js on the client, Express on the backend and MongoDB for our database and we will deploy to Heroku. The point of this series is to see how it all comes together Sponsor: DevMountain Bootcamp https://goo.gl/6q0dEa Code: https://github.com/bradtraversy/microposts_fullstack_vue • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.trav

  • Popular Full Stack Vue.js, Express & MongoDB [2] - Vue Frontend

    Full Stack Vue.js, Express & MongoDB [2] - Vue Frontend

    by Best Webhosting Added 117 Views / 0 Likes

    In part 2 we will be adding the client side using the Vue CLI and connect to our backend Express app. We will create a PostService to interact with the API from part 1 Code: https://github.com/bradtraversy/microposts_fullstack_vue • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymedia.com Follow Traversy Media: https://www.facebook.com/traversymedia https://www.twitter.com/tra

  • Popular Full Stack Vue.js, Express & MongoDB [3] - Prepare & Deploy

    Full Stack Vue.js, Express & MongoDB [3] - Prepare & Deploy

    by Best Webhosting Added 109 Views / 0 Likes

    In this video we will prepare our app with a proxy and special build location config. Then we will deploy our app to Heroku using the Heroku CLI and Git Code: https://github.com/bradtraversy/microposts_fullstack_vue • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymedia.com Follow Traversy Media: https://www.facebook.com/traversymedia https://www.twitter.com/traversymedia http

  • Learn The MERN Stack - JWT Authentication

    Learn The MERN Stack - JWT Authentication

    by Best Webhosting Added 66 Views / 0 Likes

    In this video, we will secure our API by adding JWT authentication 💻 Code: https://github.com/bradtraversy/mern-tutorial 👇 Full React 2022 Course With $12.99 promo: https://www.udemy.com/course/react-front-to-back-2022/?couponCode=REACTF2BFEB2022 👇 Website & Courses: https://traversymedia.com 💖 Show Support Patreon: https://www.patreon.com/traversymedia PayPal: https://paypal.me/traversymedia 👇 Follow Me On Social Media: Twitter: https://twitter.com/t

  • Learn The MERN Stack [8] - Prepare & Deploy

    Learn The MERN Stack [8] - Prepare & Deploy

    by Best Webhosting Added 93 Views / 0 Likes

    In this video we will prepare our application for deployment to Heroku. We will create a heroku post build script so that we do not have to manually run "npm run build" for React. It will happen on the server once we push to it. Code: https://github.com/bradtraversy/mern_shopping_list MERN Stack Front To Back Udemy Course: https://www.udemy.com/mern-stack-front-to-back/?couponCode=TRAVERSYMEDIA • Become a Patron: Show support & get perks! http://www.p

  • Learn The MERN Stack [1] - Series Introduction

    Learn The MERN Stack [1] - Series Introduction

    by Best Webhosting Added 85 Views / 0 Likes

    In this series we will build a full stack application with MERN (MongoDB, Express, React, Node.js). We will also implement Redux for state management and some other things like Reactstrap and React Transitions. Wel will also deploy to Heroku at the end. Code: https://github.com/bradtraversy/mern_shopping_list MERN Stack Front To Back Udemy Course: https://www.udemy.com/mern-stack-front-to-back/?couponCode=TRAVERSYMEDIA • Become a Patron: Show support

  • Popular Learn The Mern Stack [11] - React Registration

    Learn The Mern Stack [11] - React Registration

    by Best Webhosting Added 103 Views / 0 Likes

    In this video we will create the React register modal component and implement the create user functionality as well as getting the JWT token from the API. Original Series First Video: https://www.youtube.com/watch?v=PBTYxXADG_k&list=PLillGF-RfqbbiTGgA77tGO426V3hRF9iE Code: https://github.com/bradtraversy/mern_shopping_list • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymedia

  • Popular Learn The Mern Stack [9] - Backend JWT Auth

    Learn The Mern Stack [9] - Backend JWT Auth

    by Best Webhosting Added 103 Views / 0 Likes

    In this part we will add user registration and login with JWT (JSON Web Tokens) in Node/Express Sponsor: DevMountain Bootcamp https://goo.gl/6q0dEa Original Series First Video: https://www.youtube.com/watch?v=PBTYxXADG_k&list=PLillGF-RfqbbiTGgA77tGO426V3hRF9iE Code: https://github.com/bradtraversy/mern_shopping_list • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses http://www.traversymedia.com Fo

  • Popular Learn The MERN Stack [5] - Implementing Redux

    Learn The MERN Stack [5] - Implementing Redux

    by Best Webhosting Added 108 Views / 0 Likes

    In this video we will add Redux to our frontend app and move the state from our ShoppingList component to a store reducer. We will also create our getItems action and action types. Code: https://github.com/bradtraversy/mern_shopping_list MERN Stack Front To Back Udemy Course: https://www.udemy.com/mern-stack-front-to-back/?couponCode=TRAVERSYMEDIA • Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Website & Udemy Courses

  • Learn The MERN Stack [6] - Finishing Redux

    Learn The MERN Stack [6] - Finishing Redux

    by Best Webhosting Added 98 Views / 0 Likes

    In this video we will get the React/Redux app working with hardcoded state in the Redux store. We will create the ItemModal component to ad an item. After this video we will be ready to connect to the backend routes and make this FULL STACK!

  • Popular Learn The MERN Stack [7] - Connecting The Backend

    Learn The MERN Stack [7] - Connecting The Backend

    by Best Webhosting Added 104 Views / 0 Likes

    In this video we will finally connect to our backend routes within the Redux actions using axios and we will send the data down through the reducer into our ShoppingList component. We will also handle the post and delete requests. Code: https://github.com/bradtraversy/mern_shopping_list MERN Stack Front To Back Udemy Course: https://www.udemy.com/mern-stack-front-to-back/?couponCode=TRAVERSYMEDIA • Become a Patron: Show support & get perks! http://www

RECOMMENDED WEB HOSTING

FASTCOMET

Fastcomet

HOSTGATOR

HOSTGATOR

BLUEHOST

BLUEHOST

SITEGROUND

SITEGROUND

A2 HOSTING

A2 HOSTING

HOSTINGER

HOSTINGER

DREAMHOST

DREAMHOST

ACCU WEBHOSTING

ACCU WEBHOSTING

MILESWEB

MILESWEB

HOSTPAPA

HOSTPAPA


RSS