Now, first things first. 1
In order to get started, we need to install the required tools and do some setup of those tools in 2
order to start development on the Internet computer. 3
Now, I've listed all of these steps together for you in a handy Google doc, and if you look inside 4
this current Udemy lesson, you'll see a link to this published on the internet so you can follow along 5
with me step by step. 6
There's a couple of things that you need to copy and paste, so I really recommend using it. 7
If you are a Windows user, then you can skip this video and head over to the next one where I've got 8
all the instructions specifically for Windows. 9
Now the first step you should already have done, which is to install Node. 10
We covered Node extensively in this course and in all likelihood you probably already have it installed. 11
But if you don't simply click on this link and head over to the website and download this one on the 12
left. It's really important that you download the LTS, which stands for long term support rather than 13
the one with the latest features, because the Internet computer will only work with the long term support. 14
Now, if you already have node installed, I recommend just doing a quick version check using node - 15
-version and hopefully it's 16 or above. 16
If not, again, go over here and just download the latest version. 17
Now the next thing you're going to need is a DFX. 18
So this is the way that we're going to be able to work with the entire computer locally to be able to 19
deploy our applications and to run our code. 20
So firstly, we're going to need to open up the terminal app, which you saw me open just now already. 21
If you don't know how to do that, simply head over to spotlight and search for terminal and open it 22
up. 23
Now we're going to copy this command wholesale as it is, and be careful that you don't drop any of 24
these double quotes at the end or anything. 25
Just select it in its entirety. 26
And then I want you to paste this as an entire line into your terminal and hit Enter. 27
Now, the installation process will take a little while, but once it's done and your DFX is successfully 28
installed, you'll be able to check and confirm this by writing dfx ---version and it should 29
give you a version of 0.9.3. 30
Now the final thing you need to do is to download the latest version of VSCode if you haven't already. 31
And this is a popular code editor, and we're choosing VSCode in this case because it has the tooling 32
to work with Motoko and to be able to develop for the Internet computer. 33
So just go ahead and download and install if you haven't already got it. 34
Now the final step in all of this setup is to install the Motoko VSCode extension. 35
And you can either do that by searching for it inside VSCode or simply heading over to this link that 36
I've got for you, 37
clicking install and it should take you straight through to VSCode 38
where you can install it. 39
Just make sure that if you are searching for the extension that you actually got the one that is called 40
Motoko from the Dfinity Foundation, because there's quite a few other ones that are named in a similar 41
fashion. 42
But there you have it. 43
You're now ready to build your very first Internet computer application. 44
Our, testing ground, our 45
Hello World App. 46
But the first thing we're going to do before we get started is to create a dedicated project folder. 47
So what I've got is something called ic-project, Internet computer projects, in my files. 48
And it's really handy to have this so that you can keep all the projects in the same place and keep 49
it nicely organized. 50
So I recommend going to your desktop, hitting the command button and hitting the up button in order 51
to get to your users of root folder. 52
And you can create the new folder ic-projects right here. 53
Now, once you've created your folder, I want you to go ahead and open up terminal and we're going 54
to navigate to that new folder by writing cd and then dragging that folder into the terminal and 55
hitting enter. 56
Now we're inside this project folder where we're going to run that command that you see here. 57
So I'm just going to copy it wholesale and then paste it into my terminal and hit enter. 58
Now it's going to go through the process of creating a new Internet computer project, which comes by 59
default with some sample code. 60
And it functions as a Hello World project. 61
Now you'll know it's done once you see the Dfinity logo and we're now going to open up this new project 62
inside VSCode. 63
So go ahead into VSCode and click on Open and then select that project folder inside the ic-projects 64
folder that you created and click open. 65
And now you should be able to see all of the code that was automatically created, including some Motoko 66
code and also some HTML and JavaScript. 67
So now we're going to try and deploy this project following the step by step instructions. 68
So go ahead and open up a new terminal and I want you to write dfx 69
start and this is going to start the local Internet computer. 70
And once you see something like info starting server listing on something, something, something, 71
then you're ready to go ahead and split out another terminal window by clicking on this button right 72
here. And inside this other terminal window, you're going to write dfx deploy in order to deploy this 73
new project onto the local Internet computer network. 74
Now that's going to take just a little while. 75
But once it's done, you can go ahead and run npm start to start your server. And if you scroll up, 76
it actually tells you where your project is running. 77
So you can copy this 78
URL and paste it into your browser in order to see your brand new intact computer dapp. 79
So you can enter your name here and click on the button and it should greet you by your name. 80
So super simple, but if you manage to get here and get this running, then that means all of the installation 81
and setup has been completed successfully and you are now ready to start writing some code. 82
So go ahead and skip the next lesson, which is installation set up for Windows users and head straight 83
on to begin making your very first Internet computer project.