URL Shortener Microservice

Finished the URL Shortener. Any critique/recommendations are welcome.


Source code:

The db part looks a little bit messy, but for the first version I think it’s fine.

Yeah, I stumbled upon mongoose when I was searching info about how to use MongoDB, but decided to leave it for later.

I usually start learning new programming concepts by just hacking something together until it works (with a little help of some quick tutorial or a quick start guide) and then when I have some basic understanding I dive into learning about best practices and correct way of doing things (maybe not the most efficient way, but it works for me).