Serve a HTML Website or Single Page Application with Node and Express

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 25

  • @OpenJavaScript
    @OpenJavaScript  Рік тому

    Thanks for watching!
    👉 Source code: openjavascript.info/2023/01/23/serve-static-files-in-node-js-with-express/

  • @stepannovotny4291
    @stepannovotny4291 Рік тому +2

    Brilliant and clearly illustrated example of how Node.js can interacts with the contents of a website as displayed in a browser. THANK YOU!

  • @marquiscityyt9208
    @marquiscityyt9208 Рік тому +5

    Thank you so much man. This video saved me for my final exam. I wish you knew how grateful I am.

    • @OpenJavaScript
      @OpenJavaScript  Рік тому +1

      Really glad to you found this useful! Thanks for reaching out.
      Don't forget to sub if you'd like to see more videos like this :)

  • @yamzaanders3793
    @yamzaanders3793 Рік тому +2

    first dude i'm actually going to sub to instead of just takes notes during the video. great job man, you gave an amazing explanation👍

    • @OpenJavaScript
      @OpenJavaScript  Рік тому

      Thank you for reaching out, glad you liked the explanation in this video. And thanks for the sub, welcome aboard!

  • @dheerendrapratapsingh9406
    @dheerendrapratapsingh9406 8 місяців тому

    Bro you are a good teacher❤..You have explained all the cocepts along with possible mistakes..Please keep uploading more videos..Please❤️❤️❤️❤️❤️

  • @2ru2pacFan
    @2ru2pacFan 4 місяці тому

    Thank you so much! I needed this so much!

  • @ur_sami
    @ur_sami Місяць тому

    thanks bro 100% working.. you deserve huge respect.💖💖

  • @Michael-wz5iv
    @Michael-wz5iv 25 днів тому

    How does express auto default to the index html page?

  • @maskman4821
    @maskman4821 Рік тому +2

    This is a great tutorial, good job 👍👍👍

  • @1Chitus
    @1Chitus Рік тому +3

    great tutorial

  • @EthioApex
    @EthioApex 3 місяці тому

    thanks it works!! but the font sizes are getting alot larger when running with express as compared to running it normally, any ideas on how to fix it?

  • @dzsuvi
    @dzsuvi 5 місяців тому

    What would be the reason to serve html files with node express? Why not just simply use the old-school method and uploas flthe static files to the host?

  • @eguterobson8436
    @eguterobson8436 Рік тому

    Enlightening video man thanks!

  • @rannanibash1456
    @rannanibash1456 11 місяців тому

    Nicely understand 😊

  • @suyashshukla7488
    @suyashshukla7488 Рік тому +2

    good ,, i am loking for that , kindly can you tell me ,, if in my website i am using node js with mysql for form login then this mehod is also work there or not

    • @OpenJavaScript
      @OpenJavaScript  Рік тому

      Absolutely, you can serve up a page with the login form and then handle it on the backend via an API endpoint in the same app.
      I have done a more detailed tutorial on the setting up of a REST API with Node.js and Express here: ua-cam.com/video/nJMOTG-dfQ0/v-deo.html

  • @gulden6404
    @gulden6404 5 місяців тому +1

    Nice thanks

  • @MrWhiteav6
    @MrWhiteav6 5 місяців тому

    Man I had no clue you could host an entire framework plus just static html inside an express application. This is cool! Is it difficult to deploy?

  • @waquivakhtar7974
    @waquivakhtar7974 9 місяців тому +2

    Me learns express instantly gets stuck. Instantly finds the video with the thumbnail specifying exactly what I need.

  • @BPM28
    @BPM28 Рік тому

    Thanks a lot!

  • @flashfromthepast1066
    @flashfromthepast1066 Рік тому

    thanks bro