WEBVTT
Kind: captions
Language: en

00:00:00.060 --> 00:00:04.740
In this video we're going to create a
workspace that we can use to store all

00:00:04.740 --> 00:00:09.960
of the files that we create for our
project one of the things that separates

00:00:09.960 --> 00:00:14.880
a good developer from a great developer
is organization I like to keep organized

00:00:14.880 --> 00:00:19.780
by keeping all of my source code that
I'm working with in a central location

00:00:19.780 --> 00:00:24.260
as a developer you'll most likely be
working with many different projects and

00:00:24.269 --> 00:00:28.140
it really helps if you can keep all of
these projects in a single location on

00:00:28.140 --> 00:00:32.820
your machine this comes in really
useful if you ever need to move machine

00:00:32.820 --> 00:00:36.059
or you ever need to backup your source
code because you can just copy one

00:00:36.059 --> 00:00:39.960
directory to an external disk so let's
go ahead and create a workspace

00:00:39.960 --> 00:00:42.580
directory for our course.

00:00:44.420 --> 00:00:47.840
I'm on a Mac so I'm going open up the Finder window and

00:00:47.850 --> 00:00:52.649
then I'm going to go to go go to folder and
enter the tilde

00:00:52.649 --> 00:00:57.719
character this will take you to the home
directory for the currently logged in

00:00:57.719 --> 00:01:00.539
user
if you're using Windows then you should

00:01:00.539 --> 00:01:04.920
be able to do a similar thing using the
Windows Explorer

00:01:04.920 --> 00:01:06.060
I always create the

00:01:06.060 --> 00:01:10.049
directory in my home folder because this
makes it easy when navigating with the

00:01:10.049 --> 00:01:16.130
terminal or the command prompt which
we'll show you a bit later in the course

00:01:16.130 --> 00:01:21.060
normally I call the directory workspace
but for the purpose of this course I'm

00:01:21.060 --> 00:01:25.280
going to put it in a folder called
courses

00:01:26.200 --> 00:01:27.620
once you've created your folder

00:01:27.630 --> 00:01:31.380
open it up and then create a new
subfolder that we're going to use for

00:01:31.380 --> 00:01:38.220
our project the projects going to be
called profiles - rest - API

00:01:38.220 --> 00:01:39.240
it helps if

00:01:39.240 --> 00:01:43.920
you don't include any spaces or special
characters in the directory name because

00:01:43.920 --> 00:01:47.220
this will make it a lot easier when
you're navigating with the terminal or

00:01:47.220 --> 00:01:49.700
the command prompt which we're going to
show you in a minute

00:01:49.700 --> 00:01:54.659
once you've created your directory for
our project let's go ahead and open up

00:01:54.659 --> 00:01:59.159
the atom editor and I'll show you how to
add this project to the atom editor

00:01:59.159 --> 00:02:01.400
workspace

00:02:01.400 --> 00:02:04.140
if this is the first time
you're opening up atom you'll see this

00:02:04.140 --> 00:02:08.849
welcome screen you can close off these
tabs and then you should just see a

00:02:08.849 --> 00:02:12.140
blank entry text page like this

00:02:12.140 --> 00:02:14.870
you can add working directories to Atom by

00:02:14.870 --> 00:02:20.960
clicking file add project folder then
navigate to the newly created courses

00:02:20.960 --> 00:02:25.730
directory and then the profiles rest api
directory that we created inside the

00:02:25.730 --> 00:02:28.080
workspace and click open

00:02:28.080 --> 00:02:32.450
this will open the project in atom editor this comes in

00:02:32.450 --> 00:02:36.260
really useful because you can add
multiple different projects that you're

00:02:36.260 --> 00:02:39.950
working on at the same time to atom and
it makes it a lot easier to work with

00:02:39.950 --> 00:02:41.980
many projects at the same time

00:02:43.040 --> 00:02:45.220
okay so
now that we know how to open the project

00:02:45.230 --> 00:02:49.430
in atom editor I'm going to show you how
to navigate to our projects using the

00:02:49.430 --> 00:02:54.830
terminal or if you're on Windows you're
going to be using the git bash so since

00:02:54.830 --> 00:02:58.880
we're on a Mac we're going to load up
the terminal which you can get to if you

00:02:58.880 --> 00:03:02.330
don't have it in a shortcut you can
either get to it in the spotlight by typing

00:03:02.330 --> 00:03:07.160
terminal or you can load up in the
launcher here Launchpad and type

00:03:07.160 --> 00:03:09.640
terminal there

00:03:09.640 --> 00:03:13.160
okay once you have the
terminal open it should by default open

00:03:13.160 --> 00:03:18.620
to the home directory you can see this
by this tilde character here if you're

00:03:18.620 --> 00:03:22.820
on Windows then click on start and
open up the git bash and you should see

00:03:22.820 --> 00:03:25.560
something similar to this

00:03:25.560 --> 00:03:27.380
if you want to
make sure that you're on the home

00:03:27.380 --> 00:03:32.510
directory then you can enter cd which
stands for change directory and then the

00:03:32.510 --> 00:03:37.520
tilde character and this will take you to
the home directory

00:03:37.520 --> 00:03:38.959
alright so we created

00:03:38.960 --> 00:03:44.180
a new folder called courses in our home
directory so let's type the LS command

00:03:44.180 --> 00:03:48.760
which stands for list and this should
list all the directories that are in the

00:03:48.769 --> 00:03:52.820
current directory that we are on which
is our home directory you can see that

00:03:52.820 --> 00:03:57.140
we have our courses directory here so we
can switch into the courses directory

00:03:57.140 --> 00:04:02.690
by typing CD again that stands
for change directory and then courses

00:04:02.690 --> 00:04:05.240
forward slash

00:04:05.240 --> 00:04:10.010
got to spell courses right
and remember that it is usually case

00:04:10.010 --> 00:04:14.640
sensitive so make sure that you use a
capital C for courses

00:04:14.640 --> 00:04:15.440
alright once

00:04:15.440 --> 00:04:19.760
you're in the courses directory you can
type LS and this will list all of the

00:04:19.760 --> 00:04:22.000
sub folders in courses

00:04:22.000 --> 00:04:25.310
you can see that
we have the profiles REST API folder

00:04:25.310 --> 00:04:30.080
here so again we can type cd profiles REST API hit

00:04:30.080 --> 00:04:35.960
enter and then our terminal will change
into the profiles REST API folder if you

00:04:36.320 --> 00:04:41.140
If you ever want to know which folder you're in
you can type PWD which will output the

00:04:41.150 --> 00:04:45.920
current location so you can see I'm in
users slash Mark Winterbottom

00:04:45.920 --> 00:04:53.170
which is the home directory for the user
slash courses slash profiles REST API

00:04:53.840 --> 00:04:59.360
If you ever need to go back to the previous
directory you can type CD dot dot and

00:04:59.360 --> 00:05:04.340
hit enter and this will take you back to
the previous directory that you were in

00:05:06.000 --> 00:05:13.540
ok so that's how you navigate using the
terminal and open up the project in atom

