Skip to content

Answart/req-hdr-parser-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Request Header Parser Micro-service

An app that reads your browser and returns a JSON object with your ip-address, language and software.

{
  "ipaddress": "xxx.xxx.xxx.xxx",
  "language": "en-US",
  "software": "Macintosh; Intel Mac OS X 10.13; rv:58.0"
}

User Stories

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

Tech Stack and Key Packages

  • Express: Fast, unopinionated, minimalist web framework for node

Getting Started

Install dependencies then launch app @ localhost:8000

$ npm install
$ npm start

Example routes:

http://localhost:8000/
http://localhost:8000/api/whoami

View app in production (if still active)

https://answart-rqp-ms.herokuapp.com
https://answart-rqp-ms.herokuapp.com/api/whoami

NPM Commands

Command Description
npm install Install dependencies in package.json
node server.js Start server @ localhost:8000

About

Javascript micro-service app that, on browser read, returns a JSON object with your ip-address, language and software. 📌

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published