Request Header Parser Microservice Retrospective

Intro

The request header parser microservice project was my second Node/Express app. It accepts API requests, parses out the header of the request and returns some information back to the requester. The endpoint returns the requester's user agent, language, and IP address.

The Server-side Development with NodeJS course on Coursera was also very useful for this project. It covers Node, Express, MongoDB, and Mongoose, so you can use it to learn everything you might need for the M, E, and N parts of the MEAN stack.

Code Review

This project was a bit more simple than the Timestamp microservice. I think I would have preferred to do this project before that one. The logic of the endpoint is just some simple array and string methods to parse out the necessary data and put it in a nice, readable format to return to the user.

I did still have to set up the Express app and remove those extraneous Jade files, but there wasn't any frustrations with working with time in JavaScript included in this project!

Future Improvements

As far as improvements go, I don't think I will rewrite any of these first stabs at Node/Express apps. I view them as much more learning experiences rather than applications that should be maintained. That said, I'm happy to have done them and gotten my first steps into the scary back-end!

Looking at this request header parser project in particular, it does appear that I need to iron out exactly when I do and don't need things like cookie-parser, body-parser, morgan, and other utilities.