Join Shaun Wassell for an in-depth discussion in this video Adding MongoDB to Express, part of React: Creating and Hosting a Full-Stack Site.
and running on our computer, as well as some basic data … into our Express server. … In other words our data won't be wiped away every time … So now that we've deleted the sort of fake database … Instead of just modifying fields in an object … like we've been doing in our endpoints. … So we'll use app.get and it's also going to make use … of URL parameters so the path we're going to define here … of an article to get the associated information. … For example we'd be able to send a get request … to /api/articles/learn node … and get info about our learn node article. … Now let's define our callback. … Before we connect and query our local MongoDB instance, … we'll want to get the article name from the URL parameters, … in our other endpoints so we'll just copy and paste this, … The first thing we want to do is import the MongoDB tools … a tool called MongoClient from MongoDB. … and this MongoClient allows us to connect … to our local database. … is an options object which we can use to change …
- Creating the app component
- Using React-Router links
- Setting up an Express server
- Route parameters in Express
- Adding the comments functionality
- Installing and adding MongoDB to your project
- Rewriting the endpoints
- Adding React hooks
- Adding buttons and forms
- Pushing code to GitHub
- Running a full-stack app on AWS
Skill Level Intermediate
1. Creating a React Front End
2. Creating a Node Back End
3. Setting Up MongoDB
4. Connecting the Front and Back Ends
5. Hosting the Site
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.