Quick reference

Setting up a Cloud Development Environment

When to use

Instructions

In this course we'll be using the Cloud9 cloud development tool at C9.io

Head over there and sign up for a free account. They'll ask you for your credit card number just for verification purposes. They won't charge you.

If you don't have a credit card, go to my website at http://Codemy.com/c9 and fill out the form; I'll email you an invitation to join C9 under my education account and you won't have to give your credit card number.

Hints & tips

The tool we'll use to write code is Cloud9 at C9.io

00:05In this video,

00:05I want to talk about setting up our cloud development environment.

00:08It doesn't matter what programming language your using or

00:11what your trying to do, it's a good idea to have all of your code in one place.

00:15To have a set of tools that you use to do your coding.

00:17So I use a tool call Cloud9.

00:18And it's at C9.io.

00:21And I've been using this tool for years.

00:24It's completely free and Amazon.com actually just bought this company.

00:28So it's a huge vote of confidence.

00:29Lets us know that this is gonna be around for a long time.

00:32So, I recommend that you create an account and use this for the rest of the course.

00:36Now here's the thing, Cloud9 will ask for

00:38your credit card, they won't actually charge your card but they use it for

00:41verification purposes to make sure you're not a robot.

00:44Now if you don't have a credit card, you just don't want to give them your credit

00:47card, like I said, this is an Amazon company,

00:48they're not going to do anything weird with your credit card.

00:50But if you don't just have one or you don't want to do that,

00:52head over to my website, codemy.com/c9.

00:57Because Cloud 9 has something called education accounts and

01:00I have an education account.

01:01And that means all of my students can sign up through my education account,

01:05without entering there credit card.

01:06But I have to send you an invitation to my education account.

01:10So just go to codemy.com/c9, fill out the the form with your email address,

01:14click the button and I will send you an email invitation.

01:17Click on that, and then you can sign-up without giving your credit card.

01:19And like I said, it's totally free.

01:21And all that good stuff.

01:22So once you have an account, click the Sign In button.

01:26And this is the screen that you're gonna see when you log in.

01:30And Cloud9 uses workspaces.

01:32Every time you create a new project you'll create a new workspace.

01:35And to do that you just click this button here.

01:37And let's give this a name.

01:39You can name it anything you want, I'm going to name it PHP-course.

01:44And scroll down, and

01:44these are all the different programming languages you can choose.

01:48This is great.

01:48You can do HTML, Node, Python, Ruby on Rails, I use it a lot for Rails,

01:53C++, all this good stuff.

01:55We're going to be doing PHP for this course, so click PHP.

01:58You can actually also click HTML.

02:01The HTML template allows you to use PHP on it, but

02:04we're going to stick with this PHP thing.

02:06And then just click create workspace.

02:07Now what's going to happen here is Cloud9 is actually spinning up

02:11a Linux web server with a bunch of tools that you can use totally free.

02:15Any time you do anything to this cloud development environment,

02:19it saves it automatically.

02:20So if you write some code and then you close your web browser,

02:23you can come back later, you can come back on a completely different machine,

02:26on a different computer and your code will still be there.

02:28So it's really cool.

02:29So this is the screen,

02:30yours might actually look a little bit different the first time.

02:32I have set it up to look black and dark like this,

02:35I'm gonna close this, yours is probably white.

02:37I just like the dark better.

02:39If you click this gear, and

02:40then scroll down to themes, I just clicked this dark theme here.

02:45But do whatever you want.

02:47So here's the setup, right?

02:48This side of the screen is our directory tree.

02:51It has all our files that we're going to be using.

02:53Down here, this is actually a Linux server terminal.

02:56So, that's really cool.

02:57I don't know that we're going to be using this a whole lot in this course.

03:00But, if you're familiar with Linux command line terminals, this is really,

03:02really cool.

03:03Right here in the middle, this is our text editor.

03:06So if we open a file, this is where we're going to be writing all of our code.

03:09And this whole screen here, this is the text editor, really cool.

03:13So, I'm gonna come over here and right click here and

03:15just delete some of these files.

03:16These are just template files.

03:19We'll leave this php.ini file.

03:21And this is just a basic hello world file, we can delete that as well.

03:29Spend a couple of minutes.

03:31Get familiar with all of this stuff.

03:32We're gonna dive right in, in the next video and

03:34start playing with some of this stuff.

03:36But this is the main setup.

03:37This is where we're gonna be spending the most of our time here.

03:40And, in fact, I'm gonna right click here and create new file.

03:42And let's call this index.php.

03:44Like I said, all PHP files end in .php.

03:48If we open this, we can just start writing PHP code, Hello world.

03:59Click Ctrl +S to save the file or click file and save.

04:04Now we can come up here and actually click run project.

04:07And you can see down here it's spinning up our development tool.

04:11And it gives us this URL.

04:12If we copy this and

04:13open another web browser and paste that in, you can see this hello world.

04:19This is our file we just created, the index.php.

04:21This is actually online right now.

04:23Other people can come here,

04:24they can look at it, they can see your page and everything.

04:27Now this is not a production level quality website, this is just for development.

04:31And that means, if more than a few people come to this website at once,

04:34it's going to crash.

04:35This is just for us for our development purposes.

04:38We'll talk more a little bit about that later on.

04:40But this is pretty much it.

04:41This is the development environment.

04:42Totally free.

04:43Cloud9.io, check it out, c9.io.

04:46In the next video, we're gonna talk about version control with Git.