So we created our API, right? If we run our API, we just do a go run main.go. And then if we go to our browser, we can simply do localhost 3000 and slash pain. And we can reach our API from our own custom browser. So if you notice, we typed in localhost, right? So localhost means our machine.
The address is also 120 7.0 point 0.1, which refers to as home. So when we created our API, and we started our server, only we can access a server because we are on localhost right now. But what if we want everyone to access a server or everyone to have access to the server. So if you take a look at this diagram over here, so this is our localhost, and we have an application running over here. So we are we are going to be doing three procedures, the coding the coding part, we've done rendering and then pushing. So what we're doing after this is that when all three of these are combined into In our code is going to be pushed to a cloud repository where it can build and deploy the app on its own accord.
So in our case, in this tutorial, we're going to be using Heroku, which has its own cloud repository. It recognizes a code and then it instantiates a server for it. So what does it mean by hosting it on the cloud? It means that when it's up and running on the cloud, every machine can access it. So we have one local use right now, my friend could have a machine, your friend could have a machine, and all three of those machines will be able to access this. So you look@google.com Google was also website, which was running on localhost ones.
But when it's hosted everyone, even you even me, can access Google right from our own browsers. So let's see. Where's the next video where I talk more about follow these three steps, coding, rendering and pushing in detail