Join Shaun Wassell for an in-depth discussion in this video Setting up an Express server, part of React: Creating and Hosting a Full-Stack Site.
of our front-end directory. … to keep the front-end and backend code … of our apps separated, especially as our codebase … So first, lets make sure we're inside … the my-blog backend folder. … this is going to look like this, … using npm install --save express, … but before we write any code in here, … so we'll have to make a few small changes … is a transpiler that allows us … to write our codebase in ES6 syntax … and @babel/preset-env, and then press Enter … and it will install these packages for you, … inside our backend directory, … Express server that just sends us a message … The first thing we have to do is import Express, … import express from 'express', … is hit with a get request, … to whoever sent the request, and for our purposes, … the body of our callback is just going to look like this, … we're going to say res.send, this sends a request … back to whoever hit the endpoint, … we'll just use this to log a message to the console … telling us that the app is listening on port 8000. …
- 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.