Node.js: The Complete Guide to Build RESTful APIs (2018)

Learn to build fast, scalable and secure RESTful services with Node, Express and MongoDB, from setup to production

  • 0.0 (0 Reviews)
  • 0 Students
  • 224 Lessons
  • Mosh Hamedani

Course Overview

What is Node.js?

Node.js, or Node, is a runtime environment for executing JavaScript code outside of a browser. It is ideal for building highly-scalable, data-intensive backend services (APIs) that power your client’s apps (web or mobile apps).


Why learn Node?

Node is great for prototyping and agile development as well as building super fast and highly scalable apps; Companies like Uber and PayPal use Node in production to build applications because it requires fewer people and less code. Plus, Node has the largest ecosystem of open-source library, so you don’t have to build everything from scratch.


A step-by-step, A to Z course

What you’ll get when you sign up for this course:

  • 15 hours of HD videos, complete with exercises and solutions

  • A real-world project: you'll build the back-end for a video rental application, not a dummy to-do app!

  • No more wasted time on lengthy courses or out-of-date tutorials

  • Up-to-date and practical information and solutions (no fluff!)

  • The opportunity to learn at your own pace - lifetime access - so take your time if you prefer

  • Expert tips to become a Node rockstar

  • The best practices and common pitfalls to avoid

  • Watch on any device, online or offline - mobile friendly and downloadable lessons

  • Certificate of completion to present to your employer


You’ll learn to:

  • Confidently build RESTful services (APIs) using Node.js, Express.js, and MongoDB

  • Employ the best practices for Node.js

  • Avoid common mistakes


What we’ll cover:

  • Node module system

  • Node Package Manager (NPM)

  • Asynchronous JavaScript

  • Useful ES6+ features

  • Implementing CRUD operations

  • Storing complex data in MongoDB

  • Data Validation

  • Authentication and authorization

  • Handling and logging errors the right way

  • Unit and integration testing

  • Test-driven development (TDD)

  • Deployment


This course is for you if:

You’re a back-end developer who is used to working with frameworks like ASP.NET, Rails, Django, etc. You want to add Node.js to your toolbox.

You’re a front-end developer and want to transition to full-stack development.

You’ve tried other Node.js tutorials and found them to be too slow, out-of-date, and boring!

Having Node.js on your resume helps you find more jobs and make more money.


And here is what other students say: 

"Absolutely the best! Highly recommended if you want to get started on Node.js from zero. I have learned what Node is and what it can do. Truly comprehensive. Perfect rating! Mosh knows his stuff and he deserves your support. On a side note, my current company uses Mosh's courses as a huge resource and reference when training / refreshing knowledge. I just want to say thank you! Please don't stop teaching. You were born with the talent to teach." -Eugene John Arellano


"Mosh is one of the top 3 instructors for modern web development. He explains difficult concepts with ease. I recommend all of his courses because of the amount of detail and his style of teaching." -Warren Isaac


"What I like most about the course is Mosh's methodology and the way how he explains the things. Very well structured course with high quality of presentation as well." -Omar Amrani


Who is your instructor?

Hi! My name is Mosh Hamedani and I help ambitious developers take their coding skills to the next level. I'm a software engineer with more than 15 years of experience and I've taught over 200,000 students through my online courses. My YouTube channel, Programming with Mosh, has been watched more than 6M times. My students describe my teaching as clear, concise, and fun, without any fluff.


Do you want to become a Node rockstar? Enroll in the course and get started.


See more

FAQ

FAQ area empty

Course curriculum

15 chương 224 bài học 15 giờ 2 phút 7 bài học thử miễn phí
Chương 1 Getting Started
Chương 2 Node Module System
Chương 3 Node Package Manager
  • Introduction 3:41
  • Package.json 2:54
  • Installing a Node Package 3:33
  • Using a Package 3:20
  • Package Dependencies 3:18
  • NPM Packages and Source Control 3:51
  • Semantic Versioning 4:29
  • Listing the Installed Packages 2:10
  • Viewing Registry Info for a Package 2:45
  • Installing a Specific Version of a Package 1:05
  • Updating Local Packages 5:02
  • DevDependencies 1:51
  • Uninstalling a Package 0:40
  • Working with Global Packages 2:33
  • Publishing a Package 4:32
  • Updating a Published Package 1:55
  • Recap
Chương 4 Building RESTful API's Using Express
  • Introduction 0:47
  • RESTful Services 5:57
  • Introducing Express 2:19
  • Building Your First Web Server 5:45
  • Nodemon 1:30
  • Environment Variables 3:13
  • Route Parameters 3:22
  • Handling HTTP GET Requests 4:45
  • Handling HTTP POST Requests 3:42
  • Calling Endpoints Using Postman 2:07
  • Input Validation 7:58
  • Handling HTTP PUT Requests 8:30
  • Handling HTTP Delete Requests 4:44
  • Project- Build the Genres API 1:18
  • Recap
Chương 5 Express- Advanced Topics
  • Introducion 0:22
  • MIddleware 2:48
  • Creating Custom Middleware 4:23
  • Built-In Middleware 3:57
  • Third-party Middleware 3:55
  • Environments 4:06
  • Configuration 9:45
  • Debugging 6:54
  • Templating Engines 4:55
  • Database Integration 1:36
  • Authentication 0:29
  • Structuring Express Applications 7:44
  • Project- Restructure the App 3:05
  • Recap
Chương 6 Asynchronous JavaScript
  • Synchronous Vs. Asynchronous Code 5:51
  • Patterns For Dealing With Asynchronous Code 3:07
  • Callbacks 5:59
  • Callback Hell 2:28
  • Named Functions to Rescue 4:41
  • Promises 8:37
  • Replacing Callbacks with Promises 3:31
  • Consuming Promises 5:31
  • Creating Settled Promises 2:49
  • Running Parallel Promises 6:14
  • Async and Await 6:55
  • Exercise 5:56
Chương 7 CRUD Operations Using MongoDB
  • Introducing MongoDB 2:00
  • Installing MongoDB on Mac 3:58
  • Installing MongoDB on Windows 5:39
  • Connecting to MongoDB 3:52
  • Schemas 3:48
  • Models 4:18
  • Saving a Document 3:33
  • Querying Documents 4:18
  • Comparison Query Operators 4:59
  • Logical Query Operators 2:01
  • Regular Expressions 3:20
  • Counting 0:49
  • Pagination 1:36
  • Exercise 1 7:57
  • Exercise 2 4:34
  • Exercise 3 3:19
  • Updating Documents- Query First 3:35
  • Updating a Document- Update First 6:14
  • Removing Documents 2:38
  • Recap
Chương 8 Mongoose - Data Validation
  • Validation 6:59
  • Built-In Validators 4:55
  • Custom Validators 3:16
  • Async Validators 2:35
  • Validation Errors 3:37
  • SchemaType Options 5:56
  • Project- Add Persistence to Genres API 14:05
  • Project- Build the Customers API 6:59
  • Restructuring the Project 6:14
  • Recap
Chương 9 Mongoose- Modeling Relationships Between Connected Data
  • Modelling Relationships 7:45
  • Referencing Documents 3:51
  • Population 4:16
  • Embedding Documents 6:54
  • Using an Array of Sub-documents 4:31
  • Project- Build the Movies API 7:05
  • Project- Build the Rentals API 8:01
  • Transactions 8:45
  • ObjectID 7:03
  • Validating Object ID's 6:13
  • A Better Implementation 2:23
  • Recap
Chương 10 Authentication and Authorization
  • Introduction 4:01
  • Creating the User Model 3:40
  • Registering Users 7:53
  • Using Lodash 5:21
  • Hashing Passwords 6:54
  • Authenticating Users 4:54
  • Testing the Authentication 2:42
  • JSON Web Tokens 5:04
  • Generating Authentication Tokens 3:18
  • Storing Secrets in Environment Variables 6:12
  • Setting Response Headers 3:46
  • Encapsulating Logic in Mongoose Models 7:11
  • Authorization Middleware 6:50
  • Protecting Routes 3:06
  • Getting the Current User 4:03
  • Logging Out Users 2:04
  • Role Based Authorization 5:43
  • Testing the Authorization 4:10
  • Recap
Chương 11 Handling and Logging Errors
  • Introduction 3:02
  • Handling Rejected Promises 3:07
  • Express Error Middleware 4:40
  • Removing Try_Catch docs 8:29
  • Express Async Errors 3:18
  • Logging Errors 6:36
  • Logging to MongoDB 4:11
  • Uncaught Exceptions 3:35
  • Unhandled Promise Rejections 7:23
  • Error Handling Recap 2:26
  • Refactoring Index.js- Extracting Routes 4:54
  • Extracting the DB Logic 3:22
  • Logging 2:11
  • Extracting the Config Logic 2:30
  • Extracting the Validation Logic 1:53
  • Showing Unhandled Exceptions on the Console 1:29
  • Recap
Chương 12 Unit Testing
  • What is Automated Testing? 2:40
  • Benefits of Automated Testing 2:37
  • Types of Tests 4:00
  • Test Pyramid 2:55
  • Tooling 2:15
  • Writing Your First Unit Test 5:00
  • Testing Numbers 6:36
  • Grouping Tests 1:51
  • Refactoring with Confidence 2:43
  • Testing Strings 3:24
  • Testing Arrays 5:50
  • Testing Objects 5:30
  • Testing Exceptions 7:25
  • Continually Running Tests 1:43
  • Exercise- Testing the FizzBuzz 5:28
  • Creating Simple Mock Functions 5:37
  • Interaction Testing 5:00
  • Jest Mock Functions 7:16
  • What to Unit Test 3:06
  • Exercise 7:39
  • Recap
Chương 13 Integration Testing
  • Introduction 1:09
  • Preparing the App 2:18
  • Setting Up the Test DB 3:01
  • Your First Integration Test 5:44
  • Populating the Test DB 6:17
  • Testing Routes with Parameters 3:19
  • Validating Object ID's 3:31
  • Refactoring with Confidence 2:04
  • Testing the Authorization 2:39
  • Testing Invalid Inputs 5:32
  • Testing the Happy Paths 2:35
  • Writing Clean Tests 8:40
  • Testing the Auth Middleware 9:45
  • Unit Testing the Auth Middleware 6:14
  • Code Coverage 7:09
  • Exercise 0:26
  • Recap
Chương 14 Test-driven Development
  • What is Test-driven Development? 2:54
  • Implementing the Returns 2:33
  • Test Cases 2:53
  • Populating the Database 7:14
  • Testing the Authorization 7:22
  • Testing the Input 3:42
  • Refactoring Tests 4:18
  • Looking Up an Object 3:04
  • Testing if Rental Processed 2:13
  • Testing the Valid Request 2:23
  • Testing the Return Date 4:15
  • Testing the Rental Fee 4:50
  • Testing the Movie Stock 5:37
  • Testing the Response 3:36
  • Refactoring the Validation Logic 6:44
  • Mongoose Static Methods 6:12
  • Refactoring the Domain Logic 4:04
Chương 15 Deployment
  • Introduction 1:21
  • Preparing the App for Production 2:28
  • Getting Started With Heroku 2:15
  • Preparing the App for Deployment 1:55
  • Adding the Code to a Git Repository 2:44
  • Deploying to Heroku 3:44
  • Viewing Logs 2:46
  • Setting Environment Variables 2:44
  • MongoDB in the Cloud 8:23
  • Bonus

Requirment

  • Basic familiarity with JavaScript

Outcomes

  • Build the backend for your web and mobile apps

  • Use modern JavaScript features (ES6, ES7)

  • Implement CRUD operations

  • Handle and log errors, the right way

  • Write unit and integration tests

  • Practice test-driven development (TDD)

  • Store and retrieve complex data in MongoDB

  • Implement authentication and authorization

  • Deploy your Node apps to production

  • Apply the best practices for building fast, scalable and secure apps

Instructor

...
Mosh Hamedani

0.0

  • ... 0 Student
  • ... 2 Courses
  • ... 16 reviews

View Details

Reviews

Rate this course :

Remove all