makomweb / hello-node-js-rest-svc

Simple REST service using Node.js, Express, and Joi for scheme validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello World project for a RESTful service with Node.js, Express and Joi

Prerequisites

  1. run npm init
  2. install express npm i -g express
  3. 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

  1. install joi npm i joi or at version 13.1.0 npm i joi@13.1.0

run the service

execute nodemon index.js from the commandline

About

Simple REST service using Node.js, Express, and Joi for scheme validation


Languages

Language:JavaScript 100.0%