Deprecated: Function create_function() is deprecated in /var/www/vhosts/ on line 70
Express.js Tutorial: Building RESTful APIs with Node and Express |
  • Thursday , 1 October 2020

Express.js Tutorial: Building RESTful APIs with Node and Express

Code Canyon

Express.js Tutorial: Building RESTful APIs with Node Express Get the COMPLETE Course (70% OFF – LIMITED TIME): Subscribe for more …

Original source

3d Ocean

Related Posts


  1. Eyal S
    October 2, 2018 at 04:12

    You're awsome!!!!!

  2. Mykel Chang
    October 2, 2018 at 04:12

    Nice tutorial.
    Even if that one line "if" statement is disgusting :/
    It is not "more elegant", it just takes less height

  3. Luke Nelson
    October 2, 2018 at 04:12

    Hey, great tutorial but one question. When trying to do the put function, even when I use "name": "new course" I always get the message "name" is required. (copied your code exactly I think) Any ideas why this might be happening?

  4. Viswanathan Shanmugam
    October 2, 2018 at 04:12

    how to post the json object to external api call from am getting error like missing authorization header. i didn't find any auth for that api call.
    am new to node.js and express.js

  5. Joy Acharya
    October 2, 2018 at 04:12

    In one sentence , This lecture is awesome Mr. Mosh. thanks.

  6. Wee Hong Koh
    October 2, 2018 at 04:12

    I keep wanting to press on the Setting icon and install the update.

    Thank you for the course and I bought your course few days ago. ๐Ÿ˜€

  7. Saarang
    October 2, 2018 at 04:12

    Hi Mosh, thanks a lot for sharing this tutorial with us.

    I have a question regarding the line:

    const course = courses.find(c => === parseInt(;

    where you have used 'c' at time 28:41 in your video.
    Could you please explain me how this work. Or may be provide me the name of the convention so that I can research myself.

    Thank you!!

  8. ds5221
    October 2, 2018 at 04:12

    super video

  9. shanes2007
    October 2, 2018 at 04:12

    Very good tutorial Mr. Mosh..Things are organised very well…Nothing is more or less..Good effort….Thank u…

  10. Vijay Kumar
    October 2, 2018 at 04:12

    Hi your tutors ares simply awesome . can i have the information about how to configure mysql database in REST API using express instead Mongo.

  11. sidfor911truth
    October 2, 2018 at 04:12

    Great tutorial. I always like it when an instructor can admit that there was a bug in what they were coding. Very humble and I like seeing the trouble shooting that the teacher goes through. Great course, I am studying writing smart contracts for cryptocurrencies, and originally watched your video because it came up in a list of videos under the query 'json'. Very fortunate that I found your work, I will be back to udemy to take your course!

  12. Ahmed Musawir
    October 2, 2018 at 04:12

    Bought the course which is ok but everyone should know that after you buy the course you get 'ZERO' support from Mr. Mosh or the team … you are completely on your own … they DO NOT offer any help or support what so ever … I've bought other courses from other sources also and they're not only cheaper but also they provide a lot of help afterward, but not here … so be careful all !! This is what I get repeatedly from Mosh's team: "Hi,

    Due to the large volume of requests, we can not offer technical support or answers to individual questions at this time. If you have more generic questions, it may be best to post them on

    Thank you so much!" … and they don't have any support forum either, trust me I've asked …

  13. Manuel E Carpio
    October 2, 2018 at 04:12

    Excellent video. Very well structured. thanks

  14. Allain Servandil
    October 2, 2018 at 04:12

    I've been a c# dev for about 7 years and wanted to learn new technologies like nodejs and this video is great to start with. Thanks Mosh

  15. andyahn
    October 2, 2018 at 04:12

    I was struggling learning how to create a server with node and express. This tutorial is really easy to understand and well-structured for beginners. This is so far the best tutorial on Youtube!!! Thank you so much, Mosh!!!

  16. Hirdesh Singh
    October 2, 2018 at 04:12

    Sir I have problems
    When I hit api/courses then I have one message on browser
    Cannot Get /api/courses

    Please help

  17. Java-Tutorial
    October 2, 2018 at 04:12

    Very informative – Thanks a lot

  18. Mike K.
    October 2, 2018 at 04:12

    Massive thanks. This helped me a lot.

  19. Ion Doga
    October 2, 2018 at 04:12

    hi Mosh. I realy love your courses, very beatiful explanations of hard things. But appeared a problem by my side. Could it's possible to give a hand?
    I stopped on Input validation, I did all that I needed. The versions of Joi, express..and the code is absolutely similar. I installed postman, but it validate all requests even integers; I tryied many variants, but it likes filters of Joi doesn't work on my PC. I'll try on ubuntu 16.04. Below is the code:

    const Joi = require('joi');
    const express = require ('express');
    const app = express();

    const courses=[
    { id:1, name:'course1'},
    { id:2, name:'course2'},
    { id:3, name:'course3'},

    app.get('/', (req, res)=>{
    app.get('/api/courses', (req, res)=>{
    });'api/courses', (req, res) => {
    const schema={
    name: Joi.string().min(3).required()
    const result = Joi.validate(req.body, schema);

    });'/api/courses', (req, res)=>{
    const course ={

    app.get('/api/courses/:id', (req, res)=>{
    const course = courses.find(c=>;
    if(!course) res.status(404).send('The course with given ID is not found');

    const port = process.env.PORT || 3000;
    app.listen(port, ()=> console.log(`listening on ${port}…`));

  20. Razva Cos
    October 2, 2018 at 04:12

    SAILS. JS or ADONIS.JS rest api please with jwt auth

  21. Dorsa eshraghi boroojeni
    October 2, 2018 at 04:12


  22. Gallopeermeneer
    October 2, 2018 at 04:12

    Knew most of this, but I still watched the entire tutorial because it was so incredibly well structured and didactic.
    You are a born teacher. I've often fantasized about making great and clear youtube tutorials, in my wildest most perfect fantasies, they looked exactly like the stuff you actually make! Incredible!

  23. Moinak Dutta
    October 2, 2018 at 04:12

    one of the best tutorial on node.js.awesome,keep it up!

  24. wenyi
    October 2, 2018 at 04:12

    Awesome tutorial, very helpful

  25. redph0nix
    October 2, 2018 at 04:12

    This is THE cleanest api tutorial I have seen yet! It's just absolutely phenomial! Very well structured and easy to follow. Will be creating a basic orders api, and this will help!

  26. Romanda Hidayat
    October 2, 2018 at 04:12

    thanks your explain is wonderful..

  27. erez ta
    October 2, 2018 at 04:12

    Very professional teaching..
    Moish, you are bomba.

  28. Maruf Hasan
    October 2, 2018 at 04:12

    How do you know what will be returned from the request " require("module_name") " .

    For example you said require("express") returns a function and require("joi") returns a class. I am wondering where i can find those information.

  29. Alan Saldรญvar
    October 2, 2018 at 04:12

    Man! this for far one of the best well explained Node+Express crash courses I've ever seen. You convinced me to buy the full series ๐Ÿ™‚

  30. Dan Reznik
    October 2, 2018 at 04:12

    one more potential check: the course id passed may not be a parseable int. one needs to test / return error message. so a suggested order for input validation might be (i) is the id parseable, (ii) is the message valid, and then (iii) does the id exist. looking up the id (step iii) is the most expensive one and should only be performed after all pre-requisites are satisfied.

  31. Dan Reznik
    October 2, 2018 at 04:12

    at 28:00, in courses.find() i would move parseInt( to the outside of the find(), so parseIntI() is not called for every element, i.e.:

    const id = parseInt(;
    const course = courses.find(c => === id);


  32. Dan Reznik
    October 2, 2018 at 04:12

    amazing quality of teaching. congrats

  33. Paul Reisenberg
    October 2, 2018 at 04:12

    i am sorry but i do not understand why you are using a c (minute 27) what is it reffrencing?

  34. Genta
    October 2, 2018 at 04:12

    Cool video… very helpful.

  35. Eligijus Tamosauskas
    October 2, 2018 at 04:12

    I love this lecture, your speaking manner, pace and explanations are ideal. Not too much detail but just enough. Background music also helps with concentration.

  36. Manish modi
    October 2, 2018 at 04:12

    I want with the database work? from where can I get?

  37. G G
    October 2, 2018 at 04:12

    That zoom fucked up my brain

  38. Alex 'DARXIDE' Hueter
    October 2, 2018 at 04:12

    Thank you for this video Mosh. It has helped me a lot! Unfortunately, my school does not teach any web development for computer science students…. lol

  39. Usama Shehzad
    October 2, 2018 at 04:12

    Hi Sir, i took your Angular course… and i made oshop till the end… from then i've been a great fan of you….. never seen such a great teacher…..!!!

  40. Last December
    October 2, 2018 at 04:12

    I think would be great if you post it in difference video instead of in a single ones

  41. gamegs
    October 2, 2018 at 04:12

    We love you Mosh

  42. sourav agarwal
    October 2, 2018 at 04:12

    I have some sort of problem with joi library. It fails to load with unexpected token in index.js of joi

  43. Gtenstein
    October 2, 2018 at 04:12

    your website is not displaying favicon ๐Ÿ˜€

  44. PoetGrey
    October 2, 2018 at 04:12

    At 27:00 what does c represent

  45. SAM Am
    October 2, 2018 at 04:12

    I find your curricula competencies and content spreading strategies accurate and efficient. It looks like a dominos effect learning. I never coded with Express.js. and I really got all the logic behind it easily .
    Thanks for this great course.

  46. Vinodhkumar M
    October 2, 2018 at 04:12

    Your videos helped me expand my knowledge thank you so much for your interest in teaching what you have learnt in a very clear & precise manner. Appreciate it!

Leave A Comment

You must be logged in to post a comment.