1
00:00:00,660 --> 00:00:06,810
So it's time to set up our project and we've already got a lot of work done, and I'm looking now at

2
00:00:06,810 --> 00:00:11,460
what we were finished, what we last finished with when we were experiment, experimenting with sessions.

3
00:00:11,910 --> 00:00:17,730
And I have all this code written and I don't want to rewrite this from scratch because this is a good

4
00:00:17,730 --> 00:00:19,530
starting point for a Web application.

5
00:00:19,710 --> 00:00:24,430
Things will change as time goes on, but this is absolutely a good starting point.

6
00:00:25,260 --> 00:00:31,380
So what I'm going to do is I'm going to copy the source files from this project into a new project,

7
00:00:31,380 --> 00:00:34,170
and I'm going to do that on a Mac and go to the finder and windows.

8
00:00:34,170 --> 00:00:36,720
You go to your your file explorer, Windows Explorer.

9
00:00:37,530 --> 00:00:44,610
And I know all of my files are in this hollow world folder, and that file exists right here.

10
00:00:44,610 --> 00:00:45,740
That folder exists right here.

11
00:00:46,380 --> 00:00:47,460
So I have two windows open.

12
00:00:47,490 --> 00:00:54,600
One is looking at the existing hello world folder from the top level also inside that.

13
00:00:54,960 --> 00:00:58,530
And the other one is in the same place where the whole world folder is.

14
00:00:58,530 --> 00:01:02,400
And I'm going to create a new folder, which I will call bookings.

15
00:01:03,280 --> 00:01:06,320
I call it something bookings works and I'm going to open that folder.

16
00:01:06,480 --> 00:01:11,910
And then from here I will copy all of the files that I want to save, which is everything except for

17
00:01:11,910 --> 00:01:14,370
those go mod and go some files.

18
00:01:14,670 --> 00:01:24,220
So I will copy them from here to here and then I'll go back and open up that project folder.

19
00:01:24,240 --> 00:01:26,550
Now I'm in Goaland.

20
00:01:26,550 --> 00:01:31,680
You're probably in Visual Studio Code, but close that project in visual studio code and open a new

21
00:01:31,680 --> 00:01:31,880
one.

22
00:01:31,890 --> 00:01:37,580
So I'm going to just open and you'll choose open folder in visual studio code.

23
00:01:37,590 --> 00:01:41,940
Of course, I will find that folder which I stored in visual studio code.

24
00:01:41,970 --> 00:01:42,540
There it is.

25
00:01:43,710 --> 00:01:49,290
And I'll open the folder I just created called Bookings and I'll open it now.

26
00:01:49,290 --> 00:01:57,530
It'll give me errors because I didn't actually I have to go mad in it and all those things.

27
00:01:57,960 --> 00:01:59,830
So let's open it up and see how it looks.

28
00:01:59,850 --> 00:02:01,760
Command, web mango.

29
00:02:02,040 --> 00:02:04,860
And of course there are errors they can't find config abcde.

30
00:02:05,070 --> 00:02:06,060
I'm not worried about that at all.

31
00:02:06,330 --> 00:02:13,110
I'll just open my terminal window and now I'm going to give this a go module's file, go mod in it.

32
00:02:13,110 --> 00:02:16,200
But this time I'm going to actually use a real GitHub repository.

33
00:02:16,200 --> 00:02:17,160
It doesn't exist yet.

34
00:02:17,160 --> 00:02:18,480
I'm going to create that shortly.

35
00:02:18,810 --> 00:02:24,390
We're probably in the next lecture, but I'm going to call this GitHub dot com teszler, which is my

36
00:02:24,390 --> 00:02:27,030
username, and I'll call this bookings.

37
00:02:28,930 --> 00:02:35,410
And it creates that good, good start now that that's created, I need to enable the integration and

38
00:02:35,410 --> 00:02:41,380
I will say enable good models in modules integration and click OK, and you'll do a similar thing in

39
00:02:41,380 --> 00:02:42,420
Visual Studio Kotal.

40
00:02:42,430 --> 00:02:45,940
I think it might be smart enough you if you just quit out of it and start it back up, it'll be good.

41
00:02:47,230 --> 00:02:47,580
Good.

42
00:02:47,620 --> 00:02:49,370
So I've created that, but I still have errors.

43
00:02:49,390 --> 00:02:49,840
Why?

44
00:02:49,840 --> 00:02:56,350
Because up here, I mean, implementing or importing go course and I should be implement or importing

45
00:02:57,040 --> 00:03:01,750
bookings and bookings.

46
00:03:02,650 --> 00:03:06,910
Don't just copy and paste it in there.

47
00:03:07,090 --> 00:03:08,470
Can't find Alex Edwards yet.

48
00:03:08,470 --> 00:03:09,130
But that's OK.

49
00:03:09,590 --> 00:03:12,690
It will when I run it, I'll ignore that error.

50
00:03:12,700 --> 00:03:15,490
Any other areas here I need to worry about all the session cookie stuff.

51
00:03:15,490 --> 00:03:16,450
Not that's it for that one.

52
00:03:16,750 --> 00:03:19,210
What about middleware set based cookie.

53
00:03:19,360 --> 00:03:20,250
What's that importing.

54
00:03:20,470 --> 00:03:23,620
It's just hasn't imported that will when I run it, so don't worry about it.

55
00:03:24,220 --> 00:03:25,300
And roots go.

56
00:03:25,300 --> 00:03:26,170
Same thing.

57
00:03:26,170 --> 00:03:34,390
I need to fix the imports here from go course that becomes bookings and bookings.

58
00:03:34,390 --> 00:03:36,700
Those will be imported automatically I hope.

59
00:03:37,390 --> 00:03:38,410
And that's it for that.

60
00:03:38,410 --> 00:03:40,000
Let's try package config.

61
00:03:40,540 --> 00:03:41,680
No errors in that.

62
00:03:41,680 --> 00:03:42,160
Good.

63
00:03:42,760 --> 00:03:43,120
Oops.

64
00:03:44,900 --> 00:03:45,710
Handlers.

65
00:03:47,280 --> 00:03:51,900
There is that one again here, Paiste.

66
00:03:53,570 --> 00:03:54,260
Paiste.

67
00:03:57,750 --> 00:04:07,110
Paced, and that should be it for that model's shouldn't be any problems in this one know and render.

68
00:04:08,640 --> 00:04:09,610
Are there errors here?

69
00:04:09,630 --> 00:04:15,900
There are good course gets changed to bookings and the course gets changed to bookings.

70
00:04:16,470 --> 00:04:16,920
All right.

71
00:04:17,490 --> 00:04:19,890
Now, let's just see what happens if I run this.

72
00:04:20,340 --> 00:04:28,250
So I'm in my bookings folder in my terminal go run command web Stargirl.

73
00:04:28,290 --> 00:04:29,900
Let's see if it automatically imports this.

74
00:04:30,180 --> 00:04:31,560
It goes and finds those.

75
00:04:34,370 --> 00:04:40,100
And I have an error and the areas could not find module, this is in rendered OK, so let's have a look

76
00:04:40,100 --> 00:04:40,450
at that.

77
00:04:41,030 --> 00:04:42,670
Oh, I misspelled bookings.

78
00:04:42,800 --> 00:04:45,080
Try that again through the screen.

79
00:04:45,530 --> 00:04:46,280
Run this.

80
00:04:48,640 --> 00:04:49,040
Perfect.

81
00:04:49,060 --> 00:04:53,710
The application started, so I should be able to go to my Web browser and hit that page, which I will

82
00:04:53,710 --> 00:04:58,240
do, I will open the page localhost

83
00:05:00,430 --> 00:05:02,800
88, and it should give me what it did last.

84
00:05:03,010 --> 00:05:03,260
Good.

85
00:05:03,280 --> 00:05:04,270
So now that's running.

86
00:05:04,360 --> 00:05:05,080
That's great.

87
00:05:06,280 --> 00:05:12,930
Now I want to commit this to a repository and I'm going to push to GitHub.

88
00:05:12,940 --> 00:05:17,140
You don't have to if you don't want to, but it's always a good idea to push to get help because that

89
00:05:17,140 --> 00:05:21,070
way you have two copies of your code, one locally and one on GitHub.

90
00:05:21,520 --> 00:05:23,600
Now, I'm going to do that before I do it.

91
00:05:23,620 --> 00:05:27,920
There are certain things I do not want to store in my repository.

92
00:05:28,450 --> 00:05:31,270
There are things that I want to have locally or have to have locally.

93
00:05:31,360 --> 00:05:38,240
And I can do that on a Mac by doing list L.A. to show me what is actually in this folder.

94
00:05:38,260 --> 00:05:43,450
So I look at the folder over here, it appears I just have one, two, three, four or five things.

95
00:05:43,930 --> 00:05:50,740
But if I actually do in L.A., you'll see I have this thing dot idea and the dot in front of it means

96
00:05:50,740 --> 00:05:53,830
on a Mac, at least you can't see that folder.

97
00:05:54,100 --> 00:05:57,580
And that's just stuff created by the ID I'm using.

98
00:05:57,850 --> 00:06:01,630
And there's probably a similar thing for Visual Studio Code, but I don't want to bother committing

99
00:06:01,630 --> 00:06:02,440
that to get.

100
00:06:02,740 --> 00:06:07,930
So what I'm going to do is create a new file here at the root level of my project.

101
00:06:08,140 --> 00:06:11,140
I'll create a new file and I'm going to give that the name.

102
00:06:11,140 --> 00:06:13,210
And it has to start with a dot dot.

103
00:06:13,210 --> 00:06:17,080
GeoEye, THG and Otari get ignored.

104
00:06:17,740 --> 00:06:23,800
And inside of that, I'm going to put the name of that folder, which is the idea, and I want it to

105
00:06:23,800 --> 00:06:24,370
ignore that.

106
00:06:24,520 --> 00:06:27,040
And I'll probably be adding more things to this over time.

107
00:06:27,520 --> 00:06:33,010
What the get ignore file does is it tells the version control system get, which I'm going to talk about

108
00:06:33,010 --> 00:06:35,920
momentarily to ignore.

109
00:06:36,190 --> 00:06:40,720
Don't put into the git repository things that are listed in the get ignored folder.

110
00:06:40,720 --> 00:06:45,670
And I definitely don't want the IDIZ settings to be stored on my git repository because they're of no

111
00:06:45,670 --> 00:06:46,930
value to anyone else.

112
00:06:47,590 --> 00:06:48,940
Should I have someone else work on this?

113
00:06:48,950 --> 00:06:50,320
They're going to probably user on it.

114
00:06:50,590 --> 00:06:54,730
Maybe they're using visual studio code, maybe they're using the sublime text editor or whatever it

115
00:06:54,730 --> 00:06:55,270
may be.

116
00:06:55,690 --> 00:06:58,150
They're probably not going to want the same settings that I do.

117
00:06:58,150 --> 00:06:59,040
So I'm going to ignore that.

118
00:06:59,530 --> 00:06:59,960
All right.

119
00:07:00,220 --> 00:07:04,300
So in a minute, we're going to actually create a repository and store things in it.

120
00:07:04,870 --> 00:07:05,830
But how do we do that?

121
00:07:05,860 --> 00:07:10,000
Well, first of all, you have to have good if you already have get installed, you can skip this part.

122
00:07:10,000 --> 00:07:11,530
But if you don't, you need to go get it.

123
00:07:12,190 --> 00:07:19,750
So you fire up your favorite Web browser and go to get dash m dot com and then click on the download

124
00:07:19,750 --> 00:07:19,990
button.

125
00:07:20,530 --> 00:07:26,620
And so if I go to the homepage for guitarist Kim Dotcom, I'm here and I actually want to download it.

126
00:07:26,620 --> 00:07:30,400
So click on downloads and again, choose the one appropriate for your operating system.

127
00:07:30,940 --> 00:07:32,650
I'm on a Mac, so I would download this.

128
00:07:32,650 --> 00:07:35,170
I already have it installed, but I don't have to.

129
00:07:35,200 --> 00:07:36,340
If you're on windows, go here.

130
00:07:36,340 --> 00:07:42,040
If you're on Linux, go here or if you're using home homebrew on a Mac or its equivalent on Windows

131
00:07:42,160 --> 00:07:45,940
install however you want once it's installed.

132
00:07:46,300 --> 00:07:51,670
Come back to this course, just pause it right now and will actually set up a repository, OK.

133
00:07:55,310 --> 00:08:00,830
All right, so hopefully you have get installed, I'm now going to go back to my command or my terminal

134
00:08:00,830 --> 00:08:07,730
in my editor, I will clear the screen, I will make sure, I mean, the root level of my project and

135
00:08:07,730 --> 00:08:08,240
I am.

136
00:08:08,630 --> 00:08:14,780
And now I'm just going to type get in it and hit return and it creates an empty git repository.

137
00:08:15,430 --> 00:08:21,860
Right now, I want to add everything in this directory, everything inside the bookings folder except

138
00:08:21,860 --> 00:08:23,740
what is ignored by get ignored.

139
00:08:23,840 --> 00:08:30,170
And I do that just by saying get add dot, which means add everything in this directory that's not specified

140
00:08:30,170 --> 00:08:31,460
in the get ignore file.

141
00:08:32,090 --> 00:08:40,160
It adds it and then I need to actually commit it, get commit him and then put a message in quotation

142
00:08:40,160 --> 00:08:42,170
marks, initial commit.

143
00:08:43,520 --> 00:08:48,140
Now what might happen when you press enter at this point you might say, oh no, I don't know who you

144
00:08:48,140 --> 00:08:48,340
are.

145
00:08:48,350 --> 00:08:52,700
You need to specify a name and an email address, but it will take you through the steps necessary to

146
00:08:52,700 --> 00:08:53,150
do that.

147
00:08:53,870 --> 00:08:55,250
And then you can actually do the commit.

148
00:08:55,250 --> 00:08:55,820
At that point.

149
00:08:55,970 --> 00:09:01,910
I already have my username and so forth set up, so I'll come at it and it's now everything is committed.

150
00:09:01,920 --> 00:09:06,830
So if I actually clear the screen and on a Mac, at least on Windows, there's a similar command, but

151
00:09:06,830 --> 00:09:07,760
I can't recall what it is.

152
00:09:07,760 --> 00:09:14,780
You probably know what it is unless Darcel shows me now I have WFLA.

153
00:09:16,460 --> 00:09:21,680
Now I have a new folder here called Douget and that is my local git repository.

154
00:09:22,370 --> 00:09:27,470
And you don't need to push this to GitHub or BitBucket or whatever if you don't want to, but I encourage

155
00:09:27,470 --> 00:09:28,160
you to do so.

156
00:09:28,790 --> 00:09:30,720
It's very useful to be able to do that.

157
00:09:31,190 --> 00:09:32,690
So how do I do that?

158
00:09:32,690 --> 00:09:35,270
I'm going to push this to a get hub repository.

159
00:09:35,280 --> 00:09:36,770
So I go back to my Web browser.

160
00:09:37,250 --> 00:09:44,810
I go to just go to GitHub dot com and you'll need to create an account if you've not done so.

161
00:09:44,810 --> 00:09:46,220
So you can create an account.

162
00:09:46,550 --> 00:09:49,880
And I can look at my repositories.

163
00:09:52,220 --> 00:09:56,870
I actually want to create a new repository, created an account on GitHub if you haven't already done

164
00:09:56,870 --> 00:09:57,230
so.

165
00:09:57,830 --> 00:10:03,290
And you can see I've got lots of projects on the go here right now, then when you've done that, go

166
00:10:03,290 --> 00:10:09,110
to the plus side in the upper right hand corner and say New repository and I'm going to call mine bookings.

167
00:10:09,560 --> 00:10:11,240
Hopefully I haven't used this name already.

168
00:10:11,240 --> 00:10:12,170
Bookings is available.

169
00:10:12,170 --> 00:10:12,500
Good.

170
00:10:12,890 --> 00:10:15,050
So I'm going to make this a public repository.

171
00:10:15,050 --> 00:10:16,970
You can make it private if you don't want people looking at it.

172
00:10:16,970 --> 00:10:18,260
But I don't mind people looking at this.

173
00:10:18,260 --> 00:10:24,590
In fact, I'm going to allow you to download the source code after any given lecture by coming to my

174
00:10:24,590 --> 00:10:25,670
GitHub repository.

175
00:10:26,120 --> 00:10:27,410
But I'll talk more about that later.

176
00:10:28,160 --> 00:10:29,000
So I'm going to create it.

177
00:10:29,510 --> 00:10:31,130
I'm not going to add a read me file.

178
00:10:31,130 --> 00:10:32,270
I'm not going to add a good ignore.

179
00:10:32,270 --> 00:10:33,470
I'm not going to choose a license.

180
00:10:33,470 --> 00:10:35,210
I'm just going to create the repository.

181
00:10:35,450 --> 00:10:36,800
And then it gives me instructions.

182
00:10:37,070 --> 00:10:40,700
So I create this repository and it says, quick setup.

183
00:10:40,700 --> 00:10:43,580
If you've done this now, we're going to skip that or create a new repository.

184
00:10:43,580 --> 00:10:46,130
We've already done or push an existing repository.

185
00:10:46,190 --> 00:10:47,360
That's what we want.

186
00:10:47,840 --> 00:10:54,500
So I'm going to copy this first line, go back to my terminal, clear the screen pasted in.

187
00:10:55,400 --> 00:10:55,790
Great.

188
00:10:55,820 --> 00:10:56,330
That's done.

189
00:10:56,330 --> 00:10:58,100
Then I'll go back to the my instructions.

190
00:10:58,970 --> 00:11:05,600
Copy this line, which creates the main branch and then copy the third line and push it.

191
00:11:07,400 --> 00:11:10,130
Push perfect.

192
00:11:12,020 --> 00:11:18,830
So it is pushed now if I come back to this page on GitHub, which is just GitHub dot com, slash your

193
00:11:18,830 --> 00:11:24,500
username, slash whatever you called your repository and refresh the page, you'll see that my source

194
00:11:24,500 --> 00:11:27,680
code is now up there and it has this little note here.

195
00:11:27,680 --> 00:11:31,470
Help people interested in this repository understand your project by adding Rebbie.

196
00:11:31,610 --> 00:11:32,780
Well, don't do it here.

197
00:11:32,790 --> 00:11:35,000
You can if you want to do it over here.

198
00:11:35,600 --> 00:11:41,870
So all you need to do is to go to the root level of your project and create a new file, a new file

199
00:11:41,870 --> 00:11:43,430
and call it README.

200
00:11:44,000 --> 00:11:49,790
And it does have to have this name read me DOT M.D., which stands for Markdown and it creates a new

201
00:11:49,790 --> 00:11:54,860
blank file and mine helpfully starts up a kind of preview for markdown.

202
00:11:54,860 --> 00:12:01,790
Markdown is just a common way of putting information up and specifying certain formatting without using

203
00:12:01,790 --> 00:12:05,930
something like Microsoft Word, because you don't know that somebody has Microsoft Word or pages on

204
00:12:05,930 --> 00:12:07,040
a Mac or whatever it may be.

205
00:12:07,370 --> 00:12:10,640
Read me is just a way of formatting things really quickly.

206
00:12:10,760 --> 00:12:15,830
So I'm going to give my project the title and you do that by giving typing a hashmark and then just

207
00:12:15,830 --> 00:12:17,090
whatever you want the title to be.

208
00:12:17,090 --> 00:12:21,260
And my title will be Bookings and Reservations.

209
00:12:21,440 --> 00:12:22,880
And I get a preview over here.

210
00:12:22,880 --> 00:12:28,070
I don't know if you do in visual studio code or not, then I'll have some paragraph of text underneath

211
00:12:28,070 --> 00:12:28,170
it.

212
00:12:28,610 --> 00:12:37,430
This is the repository for my bookings and reservations project.

213
00:12:39,170 --> 00:12:42,650
It's always good to say what's used to build this.

214
00:12:43,070 --> 00:12:50,810
So I'm going to create a list built in go version and whatever version you're using, I'm using one

215
00:12:50,810 --> 00:12:51,740
point one five.

216
00:12:54,170 --> 00:13:09,410
No external, no external dependencies uses the key browser uses Alex Edwards as CSC Session Management.

217
00:13:09,890 --> 00:13:11,900
What other what other things are we using?

218
00:13:11,900 --> 00:13:12,920
Lists are going to go mod.

219
00:13:13,100 --> 00:13:13,550
Oh yes.

220
00:13:13,550 --> 00:13:18,830
No SIRF so I'll copy this and go back to my read me.

221
00:13:21,900 --> 00:13:29,130
Uses no surf, and I'll make that actually a link and I'll make it olinka, forget which way it goes.

222
00:13:29,130 --> 00:13:30,390
I think it goes like this.

223
00:13:31,590 --> 00:13:32,270
We'll find out.

224
00:13:33,330 --> 00:13:39,060
And then there's no other way around square brackets around what you want the link to look like.

225
00:13:41,490 --> 00:13:46,020
And parentheses around what you want it to link to, and this creates a hyperlink.

226
00:13:47,100 --> 00:13:48,870
All right, so I've created that.

227
00:13:49,020 --> 00:13:53,310
I should probably do the same thing for Alex Edwards just so I can quickly get where it's going.

228
00:13:53,310 --> 00:14:00,390
And she saw a copy that come back to the read me uses the key rotor, which goes in square brackets.

229
00:14:03,100 --> 00:14:13,890
And then in parentheses, the link and yes, I'll go back to go mode, find Alex Edwards, copy that.

230
00:14:14,230 --> 00:14:20,110
Go back to my read me and I will put this in square brackets.

231
00:14:22,280 --> 00:14:24,800
And then in parentheses, the link that it goes to.

232
00:14:26,240 --> 00:14:33,200
All right, so that should do it probably should put an https in front of this, it might be smart enough

233
00:14:33,200 --> 00:14:34,070
to figure it out, but.

234
00:14:37,890 --> 00:14:38,510
You never know.

235
00:14:42,170 --> 00:14:44,420
All right, so I made a change to this file.

236
00:14:47,210 --> 00:14:52,330
The thing that should be showing up here is it should be saying, hey, you're using a git repository.

237
00:14:52,610 --> 00:14:57,260
One of the nice things about using Git and an idea is that typically it will show you what files have

238
00:14:57,260 --> 00:14:59,020
changed over here by changing their color.

239
00:14:59,600 --> 00:15:06,680
So I'm going to go to Goaland, choose preferences, look for version control, and I am going to add

240
00:15:06,680 --> 00:15:12,830
a directory or actually I can probably just quit out of this and then start it back up.

241
00:15:13,100 --> 00:15:16,010
And it should realize there's a git repository once it starts up.

242
00:15:26,850 --> 00:15:32,100
And it did so you notice that this one is in red and it's it's similar, I believe it is red as well

243
00:15:32,100 --> 00:15:34,460
in visual studio code.

244
00:15:34,710 --> 00:15:41,880
So what I'm going to do is say that so I can just click on this a right click on this and choose, get

245
00:15:42,330 --> 00:15:43,170
and choose.

246
00:15:43,680 --> 00:15:45,840
And now it's been added.

247
00:15:45,960 --> 00:15:51,510
OK, so the change has been made here, but it's not been pushed to the git repository yet.

248
00:15:52,110 --> 00:15:58,780
So I can go to PVCs, which is version control system and I can choose, get push and I will push it.

249
00:15:58,800 --> 00:16:02,700
Now I'm not going to do it right now because I want to start a visual studio code and do it from there

250
00:16:02,700 --> 00:16:03,940
to see how it works in that one.

251
00:16:04,410 --> 00:16:06,810
So you don't have to take this step if you're using goaland.

252
00:16:07,020 --> 00:16:10,460
But if you're on Visual Studio Code, let's look and see how it works there.

253
00:16:10,890 --> 00:16:11,880
So acquitted of this.

254
00:16:12,180 --> 00:16:14,130
I'll start up Visual Studio Code.

255
00:16:16,590 --> 00:16:20,970
It remembers where I am, I don't want to be there, so I'll just say open.

256
00:16:23,350 --> 00:16:25,800
I will find my bookings folder and open it.

257
00:16:31,010 --> 00:16:36,790
And over here, it says, hey, look, your Gomaa has changed and you read me, it's changed as well.

258
00:16:37,190 --> 00:16:40,250
So let's push these things to PVCs.

259
00:16:40,490 --> 00:16:43,850
And over here on the left hand side, that looks like source control to me.

260
00:16:43,850 --> 00:16:47,840
That's my version control system, which Microsoft calls source control, which is fine.

261
00:16:48,350 --> 00:16:49,430
So I'll click on that.

262
00:16:49,430 --> 00:16:52,010
And I will say up here, what do I have?

263
00:16:52,430 --> 00:16:53,630
I have Torgau view mode.

264
00:16:53,630 --> 00:16:54,470
I have commit.

265
00:16:54,980 --> 00:16:57,710
I refresh you and more action.

266
00:16:57,860 --> 00:16:58,790
Let's push it.

267
00:16:59,210 --> 00:17:02,570
I want to push this to get so often goes.

268
00:17:02,570 --> 00:17:06,380
I push it to get and it says would you like to code to.

269
00:17:06,380 --> 00:17:06,770
Yes.

270
00:17:06,770 --> 00:17:08,030
Run git fetch periodically.

271
00:17:08,060 --> 00:17:08,270
Sure.

272
00:17:08,270 --> 00:17:08,640
Why not.

273
00:17:09,290 --> 00:17:10,280
So it should be pushed.

274
00:17:10,880 --> 00:17:16,010
So hopefully if I go over to my git repository and refresh this.

275
00:17:16,760 --> 00:17:17,080
Nope.

276
00:17:17,090 --> 00:17:17,810
Didn't push it yet.

277
00:17:22,260 --> 00:17:32,760
Commit and push, commit staged there and the commit is added a git repository, and now I can push.

278
00:17:35,220 --> 00:17:37,710
Let's push it push.

279
00:17:41,400 --> 00:17:45,720
We're going away and it looks like it's done, so now I want to come back here and refresh this.

280
00:17:45,720 --> 00:17:49,050
My reading should be there and it is so I added my read me.

281
00:17:49,290 --> 00:17:52,920
I have my get ignore their all the files of their the get mad and get some.

282
00:17:53,160 --> 00:17:56,450
Now, the great thing about this is this gives you a safety net.

283
00:17:56,460 --> 00:18:01,890
Lets say I'm working away on my project for a long time and I start making mistakes.

284
00:18:01,890 --> 00:18:05,610
And I said, man, I wish I'd saved a copy of this 20 minutes ago.

285
00:18:06,810 --> 00:18:13,110
Well, it allows you to live with a little less anxiety in your life, because I can always roll back

286
00:18:13,110 --> 00:18:18,260
to the last known good version of a Sourcefire, or I can go back to any version of the source file

287
00:18:18,270 --> 00:18:24,690
every time I commit and push to get stores, a history for every single file in my project.

288
00:18:25,230 --> 00:18:31,650
And I can even and will do this later on tag known versions of a project so I can say, aha, this is

289
00:18:31,650 --> 00:18:34,710
done, this is now going to be version point five.

290
00:18:34,980 --> 00:18:41,490
And I can anytime I want to go back to my git repository and look under here and you will see that we

291
00:18:41,490 --> 00:18:44,130
have tags and we haven't created any yet, so there's nothing there.

292
00:18:44,130 --> 00:18:48,080
But we can create tags and go back to a known good version of it.

293
00:18:48,300 --> 00:18:53,400
The other nice thing about this is if, like me, you work in more than one place.

294
00:18:53,400 --> 00:18:58,830
I work in an office that has a computer and I work at home that has a computer and I have a laptop,

295
00:18:58,830 --> 00:18:59,670
I take places.

296
00:19:00,180 --> 00:19:02,520
So I have three different places that I regularly work.

297
00:19:02,970 --> 00:19:08,760
One of the things that is great about get is I can work on one machine, then push and push my changes,

298
00:19:08,910 --> 00:19:11,610
go home and just pull from that repository.

299
00:19:11,850 --> 00:19:17,730
And then I have exactly the same information on my home computer as I do in my office computer.

300
00:19:18,180 --> 00:19:23,850
So I encourage you to create an account on GitHub and push stuff up here because it will make your life

301
00:19:23,850 --> 00:19:24,350
easier.

302
00:19:24,540 --> 00:19:25,470
It's not necessary.

303
00:19:25,470 --> 00:19:30,690
You can work with the local git repository, but if you're working in more than one place, things are

304
00:19:30,690 --> 00:19:32,310
going to get out of sync very, very quickly.

305
00:19:32,310 --> 00:19:33,810
So get is your friend.

306
00:19:34,260 --> 00:19:40,050
All right in the next lecture will actually start creating some pages, just some static pages for a

307
00:19:40,050 --> 00:19:40,470
website.

308
00:19:40,470 --> 00:19:46,890
So we'll be exploring some some HTML, putting some graphics on figuring out how to serve static assets

309
00:19:46,890 --> 00:19:48,090
because we can't do that yet.

310
00:19:48,360 --> 00:19:53,760
You'll hear about that in the next lecture and we'll start mocking up what we want our final site to

311
00:19:53,760 --> 00:19:54,360
look like.

312
00:19:54,840 --> 00:19:55,740
That's enough for now.
