1
00:00:01,130 --> 00:00:05,480
All right, this will be a very short lecture, and the entire purpose of this one is just to make it

2
00:00:05,480 --> 00:00:07,480
easier to run our application.

3
00:00:07,820 --> 00:00:12,730
And here's the problem I'm trying to address to make our application run right now.

4
00:00:12,770 --> 00:00:15,140
You can see what I have to type in the terminal window.

5
00:00:15,320 --> 00:00:21,380
So I have to type go run and then the full path from the current directory to all of those three profiles.

6
00:00:21,380 --> 00:00:25,340
And that's kind of awkward to type over and over because we're going to be stopping and starting our

7
00:00:25,340 --> 00:00:26,950
application on a regular basis.

8
00:00:27,650 --> 00:00:30,530
So if you're on Windows, you have to do something else.

9
00:00:30,650 --> 00:00:32,480
I'm going to do Mac and Linux first.

10
00:00:32,480 --> 00:00:38,180
If you're on Mac or Linux, go to the root level of your application and create a new file with the

11
00:00:38,180 --> 00:00:39,920
name of Rundell DSH.

12
00:00:41,030 --> 00:00:46,460
And then at the top of that file run S.H. put this line in hash.

13
00:00:46,460 --> 00:00:54,350
Bang and bang is what we call an exclamation mark in the computer programming world against Bash and

14
00:00:54,350 --> 00:00:58,330
then give yourself a couple of lines and type this go build dashboard.

15
00:00:58,490 --> 00:01:03,800
So we're going to actually build our application and we're going to output a file called bookings or

16
00:01:03,800 --> 00:01:05,170
whatever you want to call your application.

17
00:01:05,180 --> 00:01:11,600
I'm calling my bookings and then we can just specify the path to the go files in the command web directory.

18
00:01:13,400 --> 00:01:21,320
ACMD Igudesman And now we can go Stargell and we can do that because when Joe builds an application,

19
00:01:21,500 --> 00:01:26,660
it explicitly ignores test files but when you run it doesn't ignore them.

20
00:01:26,780 --> 00:01:32,210
So we can do that and then I'm going to want to start that application and I can do that with this command

21
00:01:32,330 --> 00:01:34,610
dot slash looking's.

22
00:01:35,480 --> 00:01:43,160
So if I open my terminal window and delete that, what I want need to do now is to make that run file,

23
00:01:43,160 --> 00:01:48,710
run Dusseldorp S.H. executable and you do that with a command that's written as follows.

24
00:01:48,710 --> 00:01:58,760
S.H. Mod plus X, add the executable flag to run S.H. And when I've done that I can now run my application

25
00:01:58,760 --> 00:02:06,550
just by going again, run S.H. and it will build and run my application and there it is, it's running.

26
00:02:06,680 --> 00:02:11,090
So that's how you do it on an Linux or or Mac.

27
00:02:11,210 --> 00:02:14,000
Now on Windows it's almost the same but not quite.

28
00:02:14,210 --> 00:02:19,340
I'm going to copy these two lines and I'll create a new file at the root level of my application and

29
00:02:19,340 --> 00:02:25,520
I will call that Rumbaut that and I'm not going to add this to my git repository yet.

30
00:02:25,940 --> 00:02:31,460
I will just paste those two commands in and that's all that I have to do, save this and I windows to

31
00:02:31,460 --> 00:02:32,090
make it run.

32
00:02:32,090 --> 00:02:37,580
You will just make sure you're in the directory of that batch file runs and type run that and that will

33
00:02:37,580 --> 00:02:38,640
start your applications.

34
00:02:38,660 --> 00:02:42,890
Now I'm on a Mac right now, so that's not going to work, but it will work on Windows and that's all

35
00:02:42,890 --> 00:02:44,690
I wanted to cover this time around.
