/node-pet-api

Simple node api to return a JSON list of pets

Primary LanguageJavaScriptMIT LicenseMIT

Node People API

BuildStatus JavaScript Style Guide

Simple Express RESTful API for pet reference data.

Using as part of testing various build/containerisation PoCs.

Requires

Run

npm install

# available http://localhost:3002/pets returning a static JSON array ["CAT","DOG","FISH"]
npm start

Docker

docker build -t node-pet-api .
docker run --name node-pet-api -p 3002:3002 node-people-api

Test

npm test