DEV Community

Discussion on: Building a URL shortening service with NodeJS and MongoDB. Deploy to Azure.

Collapse
 
emindeniz99 profile image
Emin Deniz

👏🏼 Good project

I can’t understand why you are storing “shorturl” and “ uniquename”, shorturl consist of baseurl and uniqueurl
It can be generated dynamically when execution of geturl, because baseurl is constant for all links, no need to store it.
Also, if we change the domain, it can be used still