Solution to FreeCodeCamp's Request Header Parser Microservice API project.
The goal is to use the Express Node.js web framework to create a simple
API service, which should respond to a /api/whoami
endpoint.
After hitting that endpoint, the service should return information about the user's data just by parsing the request header sent by browsers when sending a HTTP request.
The data returned should be like:
ipaddress
: the IP address the request was originated from.language
: the browser's language the user configured.software
: the user's OS from browser's user-agent string.
The project should be deployed in Heroku because it's easy to use and free. Also, Cloud9 IDE was suggested for use because it already has all the needed dependencies ready to work with.
This project is under MIT License.