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?
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
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
Thanks for watching!
👉 Source code: openjavascript.info/2023/01/23/serve-static-files-in-node-js-with-express/
Brilliant and clearly illustrated example of how Node.js can interacts with the contents of a website as displayed in a browser. THANK YOU!
Thank you so much man. This video saved me for my final exam. I wish you knew how grateful I am.
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 :)
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👍
Thank you for reaching out, glad you liked the explanation in this video. And thanks for the sub, welcome aboard!
Bro you are a good teacher❤..You have explained all the cocepts along with possible mistakes..Please keep uploading more videos..Please❤️❤️❤️❤️❤️
Thank you so much! I needed this so much!
thanks bro 100% working.. you deserve huge respect.💖💖
How does express auto default to the index html page?
This is a great tutorial, good job 👍👍👍
Thank you!
great tutorial
Thanks!
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?
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?
Enlightening video man thanks!
Nicely understand 😊
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
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
Nice thanks
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?
Me learns express instantly gets stuck. Instantly finds the video with the thumbnail specifying exactly what I need.
Thanks a lot!
thanks bro