Skip to content

escobot/request-header-parser-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Request Header Parser Microservice

Objective

Build a full stack app that is functionally similar to this: https://cryptic-ridge-9197.herokuapp.com/api/whoami/.

Requirements

  • User Story: I can get the IP address, language and operating system for my browser.

Notes

Requirements:

  • NodeJS
  • NPM
  • Docker (optional)

Run using NPM:

# install dependencies npm install # run app at localhost:8000 npm start

Run using Docker:

# build image docker build -t pbgnz/request-header-parser-microservice . # run image docker run -p 8000:8000 -d pbgnz/request-header-parser-microservice

Usage

# get request http://localhost:8000/api/whoami # expected response {"ipaddress":"::1","language":"en-US","software":"Windows NT 10.0; Win64; x64"}