From this project dir (rest-api-with-express
):
cd rest-api-with-express
npm install
npm start
You can specify the port number by setting the ROMCAL_APP_PORT
environment variable.
ROMCAL_APP_PORT=3000 npm start
And open the URL provided by the terminal.
Note: some browsers like Firefox has a built-in JSON viewer. Another great tool to test REST APIs is Postman.