Okay.
If you're a mac person, then congratulations, you've come to the right place.
If you're a PC user, then you don't belong here.
You're meant to be on the next video when we get back together again.
So Mac people, I just told the PC people that they are my my people because I used to work for IBM
a while ago.
But but it's not true.
I'm a mac person through and through.
I've.
I've owned Mac since I was a teenager.
All through my life I've owned so many Macs.
I've been programming on them since I was, since I was yay high.
Uh, so this is.
You are my people for sure.
Don't listen to what I said.
The other guys.
Uh, yeah.
I have no loyalty.
Uh, yeah.
No Macs all the way.
Okay, so first step in the setup instructions is to tell you to go to the repo.
Go to GitHub.
Engineering.
This link is all over the place.
I want to remind you again that the best setup instructions are written in the repo.
Follow the link to the Mac instructions.
That's where I go through things step by step.
That's what you should really follow.
Use this video to see how I do it, but be sure to follow the instructions at the top of the instructions.
I've got a few things I call the gotchas.
The things to watch out for.
Stuff like making sure you've got the latest Mac tools installed so there's a few things to watch out
for.
So please do look at those gotchas as well.
And there's there's common troubleshooting tips all the way through that should be your first port of
call is to look at the docs.
But now let's go through setting things up on the Mac.
So the first thing we're going to be doing is talking about git and cloning the current repo.
And if you're not sure about the difference between git and GitHub or you don't know what they are,
then please do take a look.
In the repo there's a folder called guides.
Look within guides.
I've got a guide I've written on what is git?
What is GitHub?
The difference between them.
Be sure to look at that to get get your foundations on that okay.
And then when you're done we're then going to open up a command prompt, a terminal and again instructions
in the repo.
But the way you do it is you go to your finder, you go to applications, you look in utilities and
there's a utility called terminal.
And you double click on that to launch a terminal.
And here I've got one right here for us to work on.
And uh, here we are.
And the first thing that I'm going to do in this terminal is I'm going to type git minus minus version
to find out if I have git installed and what version it is, and I do and there it is.
And if you don't have git installed then when you run that it should prompt you to install it.
Uh, so so follow those instructions or look in the readme so that you definitely have git installed
at this point.
Also, if you're new to the command line, if you're not familiar with using a terminal in this way,
there's another guide on that to look in the guides folder in the repo, look at the guide on the command
line and use this as an opportunity to build up some foundations, some confidence in things like files
and directories moving between them, copying them.
All the basics in a command line just so that you know the lay of the land.
And then we'll get going.
Okay, I'm going to start by typing CD, just to see that I'm in my home directory to find out what
that directory is, I type PWD and it tells me that I'm currently in slash users slash Z.
That's my home directory.
You won't be in user ed unless your name is also ed in, which is high, but you'll be in user slash
your name.
So the next thing we're going to do is create a new directory called projects, where all of our projects
belong.
It's customary to have a directory that you call projects.
You may already have one, in which case you'll be able to type CD projects and you'll go right there.
You may not, in which case we'll need to create one, which is what we'll do now.
And now you can of course use it in a different.
You could have it within another directory like your documents directory.
It's one thing.
One little trap to watch out for is it's best not to have it in a directory that is part of your iCloud
directories, like documents or desktop.
Try and avoid having it on your desktop or in documents.
There's various reasons for that, but one of them is that those those folders are replicated to Apple's
iCloud, and that can cause various problems with repose and slow things down.
And it's not necessary because your repo is already replicated to GitHub.
So recommendation is just to have it in your home directory.
So I'm going to type mkdir make a directory called projects.
There we go.
We've done it.
Now I can CD projects I can go into it.
And if I now do PWD where am I.
I am in users add projects just where I want to be.
Okay, so the next thing I'm going to do is go back to the repo again.
Here it is.
This is the LM engineering repo on github.com.
And there's this green code button.
And I press on this and I make sure that Https is selected like that.
And I'm going to copy this URL to the clipboard.
It says copied.
All right.
So I've now copied the link to this URL.
Okay I now go back to the terminal window again.
Here it is.
And now I type the legendary command git clone.
That means I want to take a copy of someone else's repo.
Well, that's my repo and have it locally on my computer git clone.
And then you paste that link that we just copied.
So we're saying git clone.
And then this remote repo called LM engineering.
And when I press enter it will take a few seconds.
But it's now copying down the entire repository I prove it, I type ls to list the contents of projects.
And there we see.
We have one thing in here.
It's called LM engineering and I can do CD, LM engineering, and then I can do an LZ again.
And there is the contents of LM engineering.
The repo.
It has been cloned.
It is now local on my computer.
So far so good.
Okay.
The next thing we're going to do is still in step one.
Step one is quite a big step.
Step one we're going to go back to the browser again.
And now I want you to go to cursors.
See you are so for this for this uh project we're going to be using cursor as our IDE as our development
environment.
Now you don't need to use cursor if you don't want to.
Cursor is a fork of VSCode.
And if you use VSCode, everything will look basically identical.
And you could also use anything else.
You could use windsurf, you could use PyCharm, whatever you want.
It's all good.
But I'm going to use cursor.
It's nice.
I like the AI features.
Uh, you have to pay for the AI features, but you get two weeks free trial, at least as of today if
you're new to it.
Otherwise it's a it's a paid plan, but you don't need to pay it.
If you don't pay it, you just don't get the the cool AI autocomplete with frontier models, but it's
completely up to you.
Um, there's a download button here, download for Mac OS.
I can press that button.
It will then download it in the usual way, and then I can open it, I can launch it.
And there will then be an installation process when I have to answer a few questions, set up an account,
select what I want and you should just pick all the defaults, get it all set up, uh, and uh subscribe
to it.
Use the free trial of course.
Uh, and then get things going so you can then launch cursor and be ready to go.
And once you've installed cursor, you can launch it either from your applications folder in your finder
window, or it might be an icon on your desktop.
Uh, or it might be in your system, uh, tray.
But you can then launch it and it should open and it should look like this.
This is a sort of new start screen.
And if it doesn't look like this, even after you've answered any first time questions, then there's
a file menu.
Go to the file menu and choose New Window and this should come up just like this.
You won't have this stuff here.
You'll just have these buttons I imagine.
And the first thing we're going to do is open a project.
So a project in cursor refers to the top level folder known as the project root, which contains all
of your code.
In our case, it's LM engineering, the thing we just cloned.
And that's what we're going to open as our project right now.
Okay.
So I come in here I click Open Project.
I'm now in editor.
So within editor I go into projects and here's LM engineering.
And now this is a bit fiddly.
You double click on LM engineering.
So we're now looking at the contents of LM engineering.
And now you press open.
It's saying that's the folder that is our folder.
And this pops up and this is everything.
This is.
This is the beginning of all of our stuff together.
So the thing you want to look for, you want to check that you see the different weeks appearing here
as folders, weeks one to week eight.
And you also want to check that in block capitals.
On the top left is LM engineering.
That's telling you that that we have opened the right folder.
If you've got this chat thing over here you can get rid of this.
This is the AI chat.
One way to get rid of it is just to drag that over like that.
But but this is the screen that I like to see.
So here we are.
We've opened the LM project in cursor.
And that completes step one of our five step instructions.
And now we have good news that the remaining steps are steps that we can do with our PC colleagues.
At the same time, we can do them together because it's going to be identical.
So I will now at this point say congratulations on step one complete.
I will see you in the next video with everyone back together again for step two through step five.
See you then.