The Hard Parts of Servers & Node.js Executing Node Code
Transcript from the "Executing Node Code" Lesson
[00:00:18] That's our dream. So there'd better be a label from in here, the axises or set up a nodes C++ feature that can access the networking feature of our computer. There better be one. What is it? Well, actually the main one's called net. But there's a more specialized one called HTTP.
[00:00:40] The node feature that's gonna access the network card effectively and be able to receive messages in the HTTP format. And we're gonna see HTTP more detail, but for now just know it's a format by which you send messages or requests from a web browser. And whenever you type in a URL and press ENTER, you send out a message.
[00:01:09] And it's sent out automatically in the HTTP format, Hypertext Transfer Protocol. Protocol means format of data and rules by how you communicate. The format of data, HT, hypertext, that's the structure of webpages linked between them, transfer, that means transfer. Good. And we need to have our network open, we're gonna discover we open a socket which is an open connection to the Internet, an open channel to the internet, two-way open channel to the Internet.
>> Roman: With CSS.
>> Will Sentance: Not with CSS, so-
>> Roman: I mean with C++.
[00:02:11] It's a label a word in here that will trigger something down here. It's called HTTP. Okay, here we go, people. Using HTTP feature of node to set up an open socket connection to the Internet. Socket's a posh word for open channel for data to go in and out of a place over the Internet.
[00:02:31] People, what do I wanna build? I wanna build a cool looking app. If we get this principle down, there's nothing else to note. Today, we're gonna see all features of node, besides two, we may have tied to the modularity. You may have time, and we have time to do handling multiple threaded tasks in some way handling multiple jobs or incident instances as a one thing we're going to touch.
[00:04:13] It's very similar, this is not quite built in automatically we have to announce we want it, but it's effectively almost built-in automatically. We'll see announcing we want, it will be later on. For now let's just use it. Let's use it, let's use it, let's use it, let's use it.