/request-header-parser

A Freecodecamp challenge. Made with Nodejs & Express

Primary LanguageJavaScript

Request Header Parser

Description

This repo contains an exercise from FreeCodecamp - a request header parser.

When the user makes a request to the main endpoint, it responds with a JSON object containing the IP, language and O.S of the browser.

Usage

Just call or enter https://gentle-taiga-82902.herokuapp.com/

Running it locally

This project is hosted in Heroku - however you can run it locally by:

  • Git cloning this repo:
git clone https://github.com/mangione77/request-header-parser
  • cd'ing into it and running:
npm install
  • Then:
node server/index

Dependencies

  "dependencies": {
    "dotenv": "^4.0.0",
    "express": "^4.16.2"
  }