Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenxl/fcc-request-header-parser
This is a small application that uses the ClementineJS boilerplate to process a request header and return selected information.
https://github.com/stevenxl/fcc-request-header-parser
Last synced: about 1 month ago
JSON representation
This is a small application that uses the ClementineJS boilerplate to process a request header and return selected information.
- Host: GitHub
- URL: https://github.com/stevenxl/fcc-request-header-parser
- Owner: StevenXL
- Created: 2016-01-18T16:01:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T18:25:34.000Z (almost 9 years ago)
- Last Synced: 2024-11-30T12:33:18.815Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhoAmI Microservice
This is a small, full-stack JavaScript application. The purpose of this
application is to return a JSON object with the **ipaddress**, **language**, and
**software** properties, and have the vales of these properties reflect client
information.This repository is a back-end challenge from
[FreeCodeCamp](http://www.freecodecamp.com).## Installation
1. Clone the repository: `git clone
https://github.com/StevenXL/fcc-request-header-parser.git`.
2. Install dependencies: `npm install`; make sure to run this command inside the
project's root directory.
3. Start the server: `nodejs server.js`; you might have to replace `nodej` with
`node`, depending on what your system uses as its executable.## Usage Example - Input
To use the microservice, make a get request to the following endpoint:
`/api/whoami`.## Usage Example - Output
`{"ipaddress": 127.0.0.1, "language": "en-US", "software": "X11; Ubuntu; Linux
x86_64; rv:43.0"}`