[00:00:28] I'm for now gonna get rid of Michael's Mac, if you don't mind. Okay over here.
>> Will Sentance: This is Will's Mac.
[00:01:58] Note it's an app that I turn on like a web browser. Web browser's an app that has access to computers internal features. The web browser as well, right, because it's sending out messages to the Internet through the computer internal features. Knows no different. How do I open a normal app on my computer like the web browser?
[00:02:12] Double click. Exactly. Unfortunately, node isn't like that. I can't double click node, because developers hate double clicking. They are pathologically oppose for using that mice, their mouse. What it mice? No, I call things. These are mouse, what's a mice? They are pathologically opposing using the mouses. So, instead they have a different way of interfacing with the computer's features of using apps, turning on apps and its Google terminal.
[00:02:43] You've seen it before, probably the terminal command line. I'm sure many of you seen it. And we can turn stuff on from it, we can run Spotify songs on here, by our Spotify, kind of cool. But we can also turn on node by writing node and pressing enter.
[00:03:13] We're gonna save that code in a file and just put the name of it here. Server.js. Node server.js, William?
>> William: Yes, sir?
>> Will Sentance: Sir, honored. Wait a sec, we'll go to Andrews, I'm watching Andrews eyes be distracted by the laptop, all right.
>> Andrew: Sorry.
>> Will Sentance: No, of course not don't worry at all.
>> Andrew: I was seeing if I had node installed already.
>> Will Sentance: That is an important question. So you right node if it's installed, it will start loading. It will turn on node ot it will turn on the java engine that will allow you to turn on node features by writing java script code.
[00:03:44] We write all that java script code in the file, save it as server.js or whatever you want to save it as. Look at this I learned how to, yeah. Yeah, thank you. [LAUGH] Never was a more sarcastic hand Ray, Clark raised by Matt all right. There it is.
[00:04:01] Save it load, okay. Write the code in the VS code or whatever. Load into node and run it. How to load and using the terminal interface. Load it in. This is gonna load this in to start running. Here's the problem. We need to reload our code with node, the code of jobs.
[00:04:18] If we change anything do our jobs code, we have to turn off node. Turn it back on. Run through the jobs code and settle all those features all over again. Because I know you could say that someone raises more than, hold on, can you selectively turn node back on.
[00:04:34] You selectively edit stuff down here that we know is gonna have break changes and live features. Now you just switch of the whole server, the whole of the node and you just turned it back on again. To do so, we use a slightly different variant of node which is gonna store, is optional on the challenges.
[00:05:30] Okay, that's using nodemon.