Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 473 Bytes

File metadata and controls

21 lines (14 loc) · 473 Bytes

Using romcal as a REST API with Express.js

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.