Node.js - Tutorial - Rendering HTML as Response

preview_player
Показать описание
Outputting plain text isn't too exciting. Let's learn how to respond with a HTML document.

See you in the videos!
Рекомендации по теме
Комментарии
Автор

Great content. But man, you NEED better sound quality on your videos.

MattSpeiser
Автор

Max is one of my hero instructors! His teaching style explains worlds and connected worlds even in the smallest comment.

bradsmith
Автор

God, I am so stress to understand this topic from other channels. But yours? truly clear my head. Thank you sir

irfanzain
Автор

You seem like a genuinely nice guy, I like that a lot. You teach incredibly well, too. Thank you for helping me learn node!

algorythm
Автор

Every beginner need to watch your video. It is useful to me. Thank you

hemanthzoro
Автор

I spent hours trying to figure this out (fs.readFile(...) and response.write(...)) and researching for how to render files. Thank you!

AlexTechie
Автор

Thanks Max. You are a great instructor: I've taken a bad node.js course in the past - in comparison yours makes it easy!

JordanRolph
Автор

For anyone who is having issues where when you type in a different path, your page isn't changing, try looking at npm nodemon. That solved my issue. Restarts the server when a change is made.

Faron
Автор

thank you for this. I spent a lot of time trying to figure out how to do it

zealot
Автор

Nice expalnation I was stuck in the topic for 1 hour but now my concept is clear.

mohammadarsalan
Автор

I like your clear and detailed way of explaining. Keep up the great work!

adamkusber
Автор

damn son, who knew Seth Rogen would be such a cool teacher!

Cuddlehead
Автор

Clear and to the point. Very good explanation.

tomaszkonecki
Автор

I have been watching your videos since quite some time. Those are great ones! Very informative. Can you please tell with IDE are you using and the plugins used for helping indentation, code suggestion etc.

MilindSali
Автор

You are the best. Another clearly described subject

tomd
Автор

Thank you so much, sir. You saved my day.

samiMan
Автор

Well explained but can you please describe/or suggest how can I include external css, JS and images into with HTML using NodeJS?? All I'm geting through this was displaying html content only??

HamzaAli-ygon
Автор

Ok, you got me hooked. I've signed up for the Udemy Course. Diving straight in...

smbtecpl
Автор

Thanks buddy, great series starting from very basics so one can head start on own..

HarshSharma-ruip
Автор

Hi, thank you for the great video! I've got one question:
After reading the html file in server.js, is there a way to edit the content of html before sending it to client as a response? Any recommended way of doing this?

The whole picture is I'm trying to write a simple server using Nodejs. It will render a default html to client (browser). In the default html, there are some buttons and options. Clients can send requests using those buttons and options. After receiving requests, the server will modify the content of html file (will need to use data from server side) and send it back as a response.
Am I doing it this correctly? Or there is other preferred ways?

totobiee