Okay.
And up next, let's discuss how we're going to test our server routes.
You see?
Once we build a route on a server.
There has to be some way how we can test it.
I mean, technically you can set up a front end and all that, but it's a much faster feedback if you
use one of the tools that essentially just allow you to send a request and that way you can clearly
check everything before you even start setting up the front end.
So long story short, it's much easier to set up a front end if you already know that.
Yes, for sure.
My server works correctly.
Otherwise if you're working in both places simultaneously.
You might be chasing a bug that doesn't exist.
Hopefully that is clear.
Now.
In a previous course iteration, we used this bad boy, a package called Postman.
This one over here.
But in this one we changed things around and we're going to use a thunder client to tell you honestly
you can use either of them.
It doesn't really matter the reason why I picked this one.
Is because you don't need to install anything extra.
If you have Visual Studio code, you're good to go.
And these days I really use Postman to set up the docs.
I just find it very useful that.
By default, you can right away get some nice docs with the postman, but everything else you can do
with the thunder client.
In order to get started with the Thunder client, navigate to your extensions and you're looking for
this one.
Now, once you install the extension, you'll see this extra tab over here.
The Thunder Client one.
If you don't, please restart the Visual Studio code because you won't be able to follow along unless
you use the postman with the course.
If you don't have the particular extension.
Again, install this thunder client.
You'll see this new tab here on the left hand side and once you have it.
And this is how.
The interface is going to look like.
So this is where you can set up the collections.
Essentially, we can group our requests.
We can also set up the environment variables and all that cool stuff.
All of that will do in a second.
For now, I just want to show you how we can make a request.
First, click on new request and effectively.
Remember, our port is 5100 and then we have the home route.
So instead of using the browser, I'm just going to grab.
The URL localhost 5100 and we'll click on send.
And if everything is correct, we should see this.
Hello world.
So this is the response.
And again, this is super useful.
When we're building the server because we can immediately test our routes.
So this is going to be a get request, but of course we can change it Also, we'll change over here
the URL, we can provide the headers, we can provide here, auth a body.
So this is where we can send data and all that cool stuff.
So super, super useful extension.
Make sure you have it.
And once everything is in place, we can start working on the next step.