LEARN EXPRESS JS IN 15 MINUTES!

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024

Комментарии • 160

  • @ProgramWithErik
    @ProgramWithErik  4 года назад +9

    Check now if your .TECH is available! Link - go.tech/erik
    Use Code erik.tech at Checkout for a special 80% OFF on 1 & 5 Year .TECH Domains!

    • @malikbrahimi7504
      @malikbrahimi7504 3 года назад

      Is there a reason why you don't use "return" to send a response back?

    • @PachucoDesigns
      @PachucoDesigns 3 года назад

      The main functions, you explain well. But there is a lot you kind of rush over and don't explain very well, or don't explain at all. You have a habit of saying, "And look, I can do this..." and then doing something that warrants explanation, yet no explanation is forthcoming.
      18:27 What is "/3?erik=5"? You have to remember, you're most likely talking to people who never touched the backend before, or not with Javascript. At the very least, you're talking to people who have never touched express before.

  • @ProgramWithErik
    @ProgramWithErik  4 года назад +50

    Accidently cut out the part at 9:55 that added the products.json! Sorry about that!
    const products =[
    {
    id:1,
    name:'Soap'
    },
    {
    id:2,
    name:'Brush'
    },
    {
    id:3,
    name:'shoe'
    },
    ]
    export default products;

  • @aussieraver7182
    @aussieraver7182 3 года назад +22

    I really have to stop being scared to learn backend.
    You made this tutorial short and easy to follow, thanks!

  • @mithranbala9259
    @mithranbala9259 4 года назад +102

    Learnt express js in 8 minutes by watching the video at 2x speed😁😋

  • @Ihavetoreturnsomevideotapes
    @Ihavetoreturnsomevideotapes 4 года назад +9

    3:34 coding starts

  • @WytherianDesireeJoy
    @WytherianDesireeJoy 3 года назад +1

    A great help, for anyone looking through comments for how to restart the server. (Maybe I missed it in the video) It's CTRL C to stop the server, then 'npm start' to restart it.

    • @the_ramann
      @the_ramann 3 года назад

      Just use debugging tools in vsc

  • @mahmoudzridi3436
    @mahmoudzridi3436 3 года назад +2

    the product.js contains:
    const products = [
    {
    id : 1,
    name : 'Soap'
    },
    {
    id : 2,
    name : 'brush'
    },
    {
    id : 3,
    name : 'shoe'
    }
    ]
    export default products;

  • @aphexau
    @aphexau 4 года назад +56

    Good tutorial...except, you are missing the section about creating the Products.js file. It goes from GET request and then straight to adding an import of the Products file to the index.js. (around the 9:55 mark)

    • @ProgramWithErik
      @ProgramWithErik  4 года назад +5

      Oops you're right thanks!

    • @robbyandrews223
      @robbyandrews223 3 года назад +3

      For a minute i thought i was crazy until i looked in the comments and discovered it wasn't just me.

    • @gmscott9319
      @gmscott9319 2 года назад +3

      @@ProgramWithErik Soooo, can you share the missing steps, please? It seems important, because I just get "ERR_MODULE_NOT_FOUND" when I try npm start

    • @onlysybilvane
      @onlysybilvane 2 года назад

      @@gmscott9319 same here

    • @OGgluttonoustoad
      @OGgluttonoustoad 2 года назад

      @@onlysybilvane i was running into that too. I fixed it by updating my npm

  • @RODABOMBA
    @RODABOMBA 4 года назад +3

    on index.js ---> Instead of "import Products from '/.products'" use "const Products = require('./products.js')"
    on products.js ---> instead of "export default products" use "module.exports = products"
    Amazing video. Well done.

  • @silentxcure
    @silentxcure 3 года назад +4

    man this was awesome. it makes so much more sense to me now. im glad you kept your debugging in the video because it gives me an idea of some things to look for when things aren't working.

  • @jyr4160
    @jyr4160 3 года назад +1

    Great tutorial. Finally starting to understand Node / Express.
    Key point: always close local server session with CTRL C or will have endless problem with 2 sessions trying to run on one port ( not sure using correct terms )

  • @MrAuchen
    @MrAuchen 4 года назад +11

    the products.js file contain this :
    const products =[
    {
    id:1,
    name:'Soap'
    },
    {
    id:2,
    name:'Brush'
    },
    {
    id:3,
    name:'shoe'
    },
    ]
    export default products;
    Good video thanks

  • @indojojon892
    @indojojon892 3 года назад

    the thumbnail made me clicked this video faster than other tutorial vids lol

  • @DivineZeal
    @DivineZeal 3 года назад +7

    Would’ve been 7 minutes without the live debugging ☺️😅, ty

  • @Dinesh-ql1ok
    @Dinesh-ql1ok 4 года назад +2

    Erik! You are so easy to follow man! Just like Brad Traversy. Keep up the good work 👍. Hope you reach 1M subscribers 🎉.

  • @RianY2K
    @RianY2K 4 года назад +5

    Thank you for the video, it helps to introduce learning some express js basic.

  • @maxwatson2046
    @maxwatson2046 3 года назад +1

    @Program With Erik
    I like your vs extensions and I have a few but I want to know which extensions you use to make your arrow functions look like an arrow and which extension you use to see that yellow line that shows you the line scope of where ever you click.

  • @80Vikram
    @80Vikram 4 года назад +3

    can you please suggest any project which I can practice to again more expertise and confidence with Express ? Just looking at tutorial won't help but diving into real world project will surely helps more

  • @Ace-ty4xe
    @Ace-ty4xe 3 года назад +2

    Hey Erik, thanks for the video. I enjoyed the tutorial. I did like the part where you did run into a problem or two and fixed it. A bit more learning because of that.

  • @freshifreshi5987
    @freshifreshi5987 3 года назад

    params is like parameters? thanks super helpful wording

  • @netbin
    @netbin 3 года назад +1

    Thank you for great explanation!

  • @adennis200
    @adennis200 3 года назад

    I love express and node.js
    I love working with apis and build very cool web applications without implementing a very complicated server.
    therefore i like node.js with express cause its simple, clean and still powerfull.
    Every web dev should know node.js for sure!

  • @kimshares1487
    @kimshares1487 3 года назад +1

    const products =[
    {
    id:1,
    name:'Soap'
    },
    {
    id:2,
    name:'Brush'
    },
    {
    id:3,
    name:'shoe'
    },
    ]
    export default products;

  • @GregWarner1
    @GregWarner1 2 года назад +1

    Incredibly well-explained and helpful! Thank you!

  • @LorandPalfalvi
    @LorandPalfalvi 4 года назад +4

    I made everything like you did but I get [ERR_REQUIRE_ESM]: Must use import to load ES Module ....
    I had to change the start script to work:
    start: "node -- experimental-modules index.js"

    • @cybersteel8
      @cybersteel8 4 года назад

      If you put "type" = "module" in your package.json like Erik did at 5:45 you shouldn't need to add that flag to the script.
      You do have a valid solution though.

    • @MrAuchen
      @MrAuchen 4 года назад +1

      @@cybersteel8 I did like in the video and still have errors , but this solution worked for me thanks

  • @tariqrasheed1984
    @tariqrasheed1984 3 года назад +5

    You editor's theme looks awesome. what is it? I want it too.

  • @pavukane
    @pavukane 3 года назад

    Really nice. Helped cleared out my concern with recent changes of Express. Is there a better backend js framework as of 2021?

  • @alieliack6494
    @alieliack6494 3 года назад

    Downloaded and watched with 4x speed with vlc player. Yes. This is how I become express.js developer in less than 4 min.

  • @treyheaney9483
    @treyheaney9483 3 года назад

    12:40
    A comment about the triple equals:
    The triple equal forces data type equivalence, and a double equals can compare values stored as different data types. So "1" would equal 1, and true would equal 1, etc. The bug you ran into can be solved in multiple ways but it's most readable to use two equals. Peace.

  • @KarthiSomasundaram
    @KarthiSomasundaram 3 года назад

    Luckily I started with your video. It gave me an overall idea of what is express.js

  • @BD90..
    @BD90.. 3 года назад

    Thanks bro it helps alot to get my head around new things and I learnt a bit more. So thank you 👍

  • @erykczajkowski8226
    @erykczajkowski8226 4 года назад +1

    I'm really glad I subscribed to you! Another video about a technology that I know something about already, but still learning new stuff! Like the rest extension or ES6 modules imports (I was looking for that recently! :) ) - thanks. One mistake in the video I believe - the post requests certainly can send back a response, I've got a whole API built with Express using POST requests only. I don't know what the problem was there (ca. 16:50), but it wasnt the request type for sure.

    • @ProgramWithErik
      @ProgramWithErik  4 года назад +1

      You are right. I don't know why I was getting an error at first either.. I just thought for a second it didn't like sending back..

    • @phuket2753
      @phuket2753 4 года назад

      @@ProgramWithErik I am new to this, but Express 4.17.1 gives a depreciation notice to use something like `resp.status(200).send({msg:'ok'})`. Thanks for the tutorial it was great. I am just a hobbyist and normally use flask (Python). This was a great transition tutorial for me.

    • @cohenschellenberg3325
      @cohenschellenberg3325 3 года назад

      @@phuket2753 hows python anyways?

  • @mamadkhan6708
    @mamadkhan6708 3 года назад

    thanks dude . you're great.

  • @jancifoxhound6380
    @jancifoxhound6380 4 года назад +1

    Great timing Erik. I'm learning node, express nowadays.
    ES6 imports and REST client VS extension are Sick! Didn't hear about them. Thanks.
    I would love to see adding mongoDB and Vue to make MEVN stack.
    Anyways, Thanks for great content.
    I tryed React , Angular, but i realy like Vue. And I'm so glad i can learn from VueMaster like you.

  • @lehos24
    @lehos24 2 года назад

    I am sure the REST client VSCode extension is very nice. However, it is to no good if it doesn't run. In my VSCode the run time status is "Not yet activated" and I can't find anywhere how to activate this. I guess I need Postman after all. Or am I missing something?

  • @felipeserrano9173
    @felipeserrano9173 3 года назад

    Thank you Erik

  • @erickrecher580
    @erickrecher580 3 года назад +6

    The ad at the beginning and missing parts made this video a bad experience. Time to look at other videos that are of higher quality.

  • @spamdam1588
    @spamdam1588 3 года назад

    How do you like VSCode? I was using Brackets for HTML and CSS, but Adobe is going to stop supporting it, and is wanting people to migrate over to VSCode. I mostly just liked Brackets because of the live preview, and I don't use it for JavaScript

  • @zdzisiu197
    @zdzisiu197 4 года назад

    I like it! More tutorials like that! It's easy to understand and follow

  • @mikes.1946
    @mikes.1946 3 года назад

    You got a sub brother. I think for me js syntax is still a bit confusing but I’m getting more comfortable with it. I think with enough repetition and knowing what to Google I’ll be fine!

  • @JaredDeBlander
    @JaredDeBlander 2 года назад

    What's up with the jarring cut at 9:54 with products.json suddenly added.

  • @kavindugayan4655
    @kavindugayan4655 3 года назад

    Thank you

  • @fares.abuali
    @fares.abuali 2 года назад

    Thanks!

  • @JamesWelbes
    @JamesWelbes 4 года назад +5

    why does it feel like this video is missing a chunk of content around the 9:55 mark?

    • @coollatchu
      @coollatchu 4 года назад +2

      export const products = [
      {
      "id": 1,
      "name:": "Soap"
      },
      {
      "id": 2,
      "name:": "Brush"
      },
      {
      "id": 3,
      "name:": "Cream"
      }
      ];
      export default products;
      finally figured it out!

    • @sriharijoshi5
      @sriharijoshi5 4 года назад +1

      @@coollatchu [{
      "id": 1,
      "name:": "Soap"
      },
      {
      "id": 2,
      "name:": "Brush"
      },
      {
      "id": 3,
      "name:": "Cream"
      }]
      Ctrl+C
      Create products.json
      Ctrl+P

  • @maximk7816
    @maximk7816 3 года назад

    noob question but still: what if I have a domain and bought a hosting.. how could I make a real website with these JS based technologies like Express and Node.. I mean what exactly I should have installed on a real remote server? Can you give me a direction what should I look up in order to make a real site this way?

  • @ChrisTian-ox5nr
    @ChrisTian-ox5nr 2 года назад

    subscribed! Thank you!

  • @gabrielbarnes5892
    @gabrielbarnes5892 3 года назад

    Super helpful! Thanks!

  • @johnthomasriley4193
    @johnthomasriley4193 4 года назад

    Love Express, NodeJS and Webcomponents!

  • @sumantamandal3762
    @sumantamandal3762 3 года назад +1

    Thanks for this tutorial!

  • @zeroxpeakhuman4212
    @zeroxpeakhuman4212 3 года назад +3

    well that's why it is hard because even in tutorials we are getting errors. Its hard to understand express.

  • @rudebwoy1981
    @rudebwoy1981 3 года назад

    Thanks, very clear and useful!

  • @BrendanTheDude88
    @BrendanTheDude88 3 года назад

    I am at the point where you run npm start for the first time (Hello World) My folder structure and package.json is identical to yours, yet I am getting an index.js not found error (it is most definitely there). Any ideas what could be the problem?

  • @mwaqze
    @mwaqze 4 года назад +1

    Hi there, can you do a tutorial video on Express.js and Vue please.

  • @julian_pp
    @julian_pp 4 года назад

    Nice Erik +1, now with Loopback please. Thank you for your work

  • @MarkJamesButcher
    @MarkJamesButcher 3 года назад

    I ran into an error from type: module setup. I resolved it by running `n stable`

  • @erkmichealson
    @erkmichealson 3 года назад

    what about app.use I have to use that for a homework thing.

  • @noorbasha3270
    @noorbasha3270 3 года назад

    Hello, I need product.js file in this project . Can you please send me the link

  • @debaditya66
    @debaditya66 3 года назад

    npm start not working showing console not defined why??

  • @laxmanbista3195
    @laxmanbista3195 3 года назад

    How did you create Product.js? You did not show that file

  • @puruagni1927
    @puruagni1927 2 года назад

    Superb!

  • @arthurolga
    @arthurolga 3 года назад

    Doesn't /add makes it not restful?

  • @ticTHEhero
    @ticTHEhero 3 года назад

    how to get that fancy arrow function visual?

  • @chikatikah3838
    @chikatikah3838 3 года назад

    They sure do make some decent denim!

  • @programmerrdai
    @programmerrdai 4 года назад +1

    Great Content

  • @reza4957
    @reza4957 3 года назад

    Mine doesn’t show that it shows like the main features it doesn’t show terminal can anyone help me

  • @brobocops
    @brobocops 3 года назад +4

    You lost me at the writing code part LOL

  • @salemexpress3014
    @salemexpress3014 4 года назад +1

    Do middleware and muter also

  • @dineshnikhil59
    @dineshnikhil59 3 года назад

    1000th like, keep rocking.

  • @jeanbisono8541
    @jeanbisono8541 3 года назад

    You should use Nodemon.

  • @POSITIVEVIBES-wx4sn
    @POSITIVEVIBES-wx4sn 3 года назад

    Can you share the products.js file - Thanks.

  • @christopherbergeron5217
    @christopherbergeron5217 3 года назад

    PATCH is also a valuable method.

  • @johnm8358
    @johnm8358 4 года назад

    nice demo erik, what would be great would be a demo of how to do token authentication in express

  • @ddey239
    @ddey239 3 года назад

    products.js contents are missing

  • @JanacMeena
    @JanacMeena 3 года назад

    First API code at 7:15

  • @GuruPrasad-kx4zt
    @GuruPrasad-kx4zt 3 года назад

    Good work bro 👍💪👊

  • @straker_741
    @straker_741 4 года назад

    Thank you.

  • @alvaroksin
    @alvaroksin 3 года назад

    handy dandy, what a fun expression hahaha

  • @siswoyodwiprasetyo8394
    @siswoyodwiprasetyo8394 3 года назад

    awesome

  • @emarciobdirector
    @emarciobdirector 3 года назад

    The video stars at 1:50.

  • @sriharijoshi5
    @sriharijoshi5 4 года назад

    Code!
    github.com/sriharijoshi5/ExpressGraphQL/tree/DEV

  • @PaulBuys2011
    @PaulBuys2011 3 года назад

    starts @ 1:49

  • @copierofvideos2
    @copierofvideos2 3 года назад

    Great tutorial thanks! Quick and concise

  • @CodeSynergy
    @CodeSynergy 3 года назад

    That is actually 10 minutes, if I take out the time of fixing errors :-)

  • @samuelmatheson9655
    @samuelmatheson9655 2 года назад

    All systems online

  • @souvikdas3636
    @souvikdas3636 3 года назад

    app.get("/",(req,res)=>{
    res.send("awesome vid")
    })

  • @vishwasrvibhu6670
    @vishwasrvibhu6670 2 года назад

    Please share the product.js with us

  • @RisalFajar
    @RisalFajar 3 года назад

    would be better if the video is 1080P :)

  • @debaditya66
    @debaditya66 3 года назад

    press the insert key bro its above the del key

  • @josuebarros-desenvolvedorw2490
    @josuebarros-desenvolvedorw2490 3 года назад

    Dude, I Reeeeeally need to create a personal project with that! hehehe

  • @gamesland2067
    @gamesland2067 3 года назад

    Hellow Erik 😂

  • @bdk9830
    @bdk9830 3 года назад

    best tutorial thanks!

  • @HoussemAydi
    @HoussemAydi 3 года назад

    thanks dude, you saved me at last minute hahaha

  • @thenotorious3763
    @thenotorious3763 4 года назад

    Expected a JSON object, array or literal.json
    when i created the products.json file i pasted the contents found in the comments and the above error is what i got when i ran it

  • @miggiegarcia6213
    @miggiegarcia6213 3 года назад

    whats the atom version of rest client?

  • @pietrononame4945
    @pietrononame4945 2 года назад

    Why should I learn it? It seems like a big mess. Routing? Controllers? Models? Views??

  • @bopeng9504
    @bopeng9504 4 года назад

    nice

  • @maxteer2800
    @maxteer2800 3 года назад

    I like you and i like this, thanks!

  • @braham.prakash
    @braham.prakash 3 года назад

    still Experimental
    "type": "module"

  • @kensleylewis
    @kensleylewis 3 года назад

    Bro, you were just missing nodemon

  • @feng282
    @feng282 2 года назад

    Not to complain, but most Express courses out there, including this one, are not good.
    First of all, if programmers are creating a server using JavaScript, they are most likely new to this field. They have no idea what backend is, rest means, and CRUD is.
    Second of all, they don't know the difference between backend, frontend and the mixture. For example, if I ask you to alter status error code when ever the password the user enters is incorrect, what are the technologies should be involved? Is Redux used here? Is database used here? Is it even a front-end job? This type of basic knowledge is really confusing for new programmers. I've been there, so I can understand the confusion.
    I've been following your channel for so long, and I've learned a ton. This comment is not meant to be aggressive. Hope you think my comment is a sincere suggestion, rather than a complaining for free course.

    • @ProgramWithErik
      @ProgramWithErik  2 года назад

      Sorry, this wasn't helpful. I'll take the criticism. Maybe next time I'll make a more beginner friendly express tutorial

    • @feng282
      @feng282 2 года назад

      @@ProgramWithErik Oh no it was helpful for me!! But for absolute beginners, probably not so much. If they don't know what server is, then code like [app.get] probably won't make sense to them. Thank you for noticing my comment!