All right so moving right along here we've established we're working with no genius.
Now we need to set up our environment so that we can do that.
Fortunately cloud 9 makes it really really easy.
It's basically a single button press maybe two and we have a node environment ready to go.
One thing before I do that I do want to talk a bit about what the Course is and isn't.
Yes I know it seems like I'm leaving that a bit late but really what I'm talking about is that this
is not a no G-S course is not going to be comprehensive.
This is not going to teach you you know a tenth of what you would want to know about no.
Yes.
If you want it to be a no just developer.
This is not an issue Tim oleracea says or you know bootstrap or whatever tools we use is not a course
on those tools.
They are helping us.
They're serving a purpose which is to make an app with my s.
Q outside my school course and we're basically using those tools as needed to try and strike a balance
as we go on here.
I'm not going to just speed past and ignore you know explaining what certain things are.
Just assume you know or assume that you don't care what a certain line of javascript does or what a
line of C of S does.
But I'm also not going to take the time to explain every single line to have you know challenging C
assassinated him out and no genius exercises and so on.
We're still going to have exercises around my as well.
So I just want to throw that out there just to set your expectations.
And also if there is a chance that you want a full course on those technologies I have a 45 plus hour
course on those technologies that you can check out but you don't need that course to get through this.
That's kind of the point I'm going to show you enough but I'm not going to spend 10 hours talking about
a..
OK.
So with that said let's hop over to cloud nine and we're going to go to our main kind of dashboard.
So not inside of the editor not inside the current environment but we're going to go to a dashboard
and you can get there but it's going to see 9.00 signing in if you're not signed in and it will take
you here.
Now I have a bunch more and you probably have unless you've been playing around.
But all that you need to do is click on Create a new workspace and we'll call it whatever you want I'll
call this node and my ass.
Q Well you can call it whatever you like.
And then what we're going to do is down here this is the important part click node.
So we could get away with any of these.
We could install no japes ourselves.
It's not actually terribly difficult if you want to install it yourself in your own machine.
There are great instructions online.
Just go to the no J s website.
You basically just download a package but you're going to be doing this using Cloud 9 to make it very
easy for all of us to be on the same page and that's it.
No just give it a name create it will take a little bit.
I'll use the magic editing.
Fast forward through this and we're back.
And this is what we see.
So there's a couple of things.
One we have a new environment here.
None of our old files are here.
None of our old databases that you know the books or whatever we've been working with customers orders
that's not here it's not gone.
You would just have to go back to that environment.
But more importantly we have node installed here and we want to test that out to make sure.
So what what cloud 9 does is they actually give you kind of a starter app that will just delete.
But before we do that we'll just make sure it works.
So they have instructed instructions if you want to try it.
All that we have to do is type node server.
Yes.
And actually before I do that ignore my icemaker.
It's very noisy.
If we just do ls All right we see we have server.
Yes let's just open it.
There's code in here that we didn't write.
We're going to get rid of all of it.
And there's my fridge now boy.
So noisy.
Hopefully they're done now.
So we've got you know all this code that we didn't write.
This is node.
This is javascript.
We'll be getting to stuff like this.
We're not going to make a chat app.
That's what this is but we'll be working on something similar.
So now if we do node server J.S. and I hit Enter we should get something like this chat server listening
at 0.0 Bob La 88.
OK.
So that's the first thing.
If you get that that means that node is working if you get something like error or command not found
node that means that no it's not installed.
And I highly doubt you would ever get that if you had created a new workspace and done this kind of
the way that you're supposed to.
But if you're just working on your computer or you're working in a different cotinine workspace that
isn't set up with node and you try and type node then you'll get an error and then the next thing to
discuss is OK we have our app running.
We started a server.
Now how do we interact with the app which is something we'll be doing once we create our web app we'll
start it up but we'll need to view it.
You can actually click on this preview button and just go to preview running application.
And here it is.
Or you can also just copy this you are.
Like to keep it in a separate tab and just paste that in.
And we have a chat app now if we wanted to.
This isn't part of the course this is not important that you understand but you can send it and you
can do this in two windows.
Now we have no cult and anonymous I can decide on a name it's my cat and my cat says meow.
Go away.
Send that anyway.
You can see we have a chat app working.
Here's a simple web app that we didn't create but is running with node and that's important.
OK.
So we can stop it using Control-C just like we could stop the madness.
Q LCL and that's where I'm going to end this video for now.
Next we're going to do sort of a five minute crash course on Snoad.
But for now what we talked about was creating the node environment.
We have this environment and then we talked about how if we have a server running we can preview it
by clicking on Preview or we can open it in a separate you are in a separate tab or window.
One thing to note I stopped it.
So if I try and refresh the page now I get an error.
There's no application running.