Follow these steps to run the server
- Create new directory in vscode terminal to store the server.
- New file called helloworld.js and paste the code above into it or download this file.
- Within Terminal:
- Run npm init to create a package.json file
- Run npm install express to import express api handling.
- Run node helloworld.js to start listening to the server.
- Terminal should return message ‘Example app listening on port 3000!’
- Open web browser and go to link http://localhost:3000/