In this video, Emmanuel Henri starts coding the express server and adding the proper scripts to run your server on port 3000. He then tests the server to make sure everything is working properly.
- [Instructor] Now the fun begins.…We'll start by creating our initial server code,…and then making sure it is running properly.…We'll simply work on the basis of our server…which we'll add more and more…as we build our back-end APIs.…So the first thing I want you to install…is body-parser so let's go ahead and add that dependency.…So npm,…let's go inside of vs code,…and do npm i…save body-parser,…and we're saving this to the regular dependency.…
Okay so once we have that installed…we'll create a brand new file.…So, as you remember, if we look…in the package.json file the…entry point of our server is the index.js.…So that means when we do npm start…it's going to look inside of that file,…and see if there's a server,…and if there is one then it will run it.…So let's go ahead, and create the file…so you do either File, New File,…or you do the little icon here in VS Code…or whichever way you create a…new file in your own editor.…
And we'll call it index.js,…and we're simply going to create a very,…very simple server first.…
- Setting up a project and a server
- Setting up a database and schema
- Creating POST, GET, PUT, and DELETE endpoints
- Serving files
Skill Level Intermediate
Node.js: Extend and Maintain Applicationswith Daniel Khan3h 35m Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
1. Setting Up
2. Initial Server Build
3. CRUD Operations
4. Other API Options
Static files serving3m 16s
Next steps1m 1s
- 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.