In this tutorial, we will be using a simple Express app that prints Hello World
on http://localhost:5000
-
Install dependencies
You can use your favorite package manager to install all the dependencies for this project.
Example-
npm install
oryarn install
-
Run the dev script
The
package.json
contains a dev script when running the server locally. It usesnodemon
that updates the automatically server when changes are made.Run
npm run dev
oryarn run dev
-
Checking the response
After running the dev script, you should see the server response on the console. Additionally, if you go to
http://localhost:5000/
you should see a "Hello World" message.