All right, this will be a very short lecture, and the entire purpose of this one is just to make it
easier to run our application.
And here's the problem I'm trying to address to make our application run right now.
You can see what I have to type in the terminal window.
So I have to type go run and then the full path from the current directory to all of those three profiles.
And that's kind of awkward to type over and over because we're going to be stopping and starting our
application on a regular basis.
So if you're on Windows, you have to do something else.
I'm going to do Mac and Linux first.
If you're on Mac or Linux, go to the root level of your application and create a new file with the
name of Rundell DSH.
And then at the top of that file run S.H. put this line in hash.
Bang and bang is what we call an exclamation mark in the computer programming world against Bash and
then give yourself a couple of lines and type this go build dashboard.
So we're going to actually build our application and we're going to output a file called bookings or
whatever you want to call your application.
I'm calling my bookings and then we can just specify the path to the go files in the command web directory.
ACMD Igudesman And now we can go Stargell and we can do that because when Joe builds an application,
it explicitly ignores test files but when you run it doesn't ignore them.
So we can do that and then I'm going to want to start that application and I can do that with this command
dot slash looking's.
So if I open my terminal window and delete that, what I want need to do now is to make that run file,
run Dusseldorp S.H. executable and you do that with a command that's written as follows.
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
just by going again, run S.H. and it will build and run my application and there it is, it's running.
So that's how you do it on an Linux or or Mac.
Now on Windows it's almost the same but not quite.
I'm going to copy these two lines and I'll create a new file at the root level of my application and
I will call that Rumbaut that and I'm not going to add this to my git repository yet.
I will just paste those two commands in and that's all that I have to do, save this and I windows to
make it run.
You will just make sure you're in the directory of that batch file runs and type run that and that will
start your applications.
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
I wanted to cover this time around.