Hello World project for a RESTful service with Node.js, Express and Joi
Prerequisites
- run
npm init
- install express
npm i -g express
- install nodemon
npm i -g nodemon
Set environment variable for port
$env:PORT=5000
To configure the port where the HTTP server is listening.
Implement scheme validation using Joi
- install joi
npm i joi
or at version 13.1.0npm i joi@13.1.0
run the service
execute nodemon index.js
from the commandline