Build a full stack app that is functionally similar to this: https://cryptic-ridge-9197.herokuapp.com/api/whoami/.
- User Story: I can get the IP address, language and operating system for my browser.
Requirements:
- NodeJS
- NPM
- Docker (optional)
Run using NPM:
# install dependencies npm install # run app at localhost:8000 npm startRun using Docker:
# build image docker build -t pbgnz/request-header-parser-microservice . # run image docker run -p 8000:8000 -d pbgnz/request-header-parser-microserviceUsage
# get request http://localhost:8000/api/whoami # expected response {"ipaddress":"::1","language":"en-US","software":"Windows NT 10.0; Win64; x64"}