Starting URL Shortener Project

Greetings.

I am also solving the same challenge. So far, handling POST and working with mongoose is okay, but can you please explain where to get the shorturl database? Or am I asking for something incorrect? Am I suppose to make one?

Thank you.

Hello there,

I have moved your post to a new topic.

I am not sure I understand the question.

The aim of the project is to create an API which accepts a URL as a parameter, saves the URL with a shortened version, and responds with that shortened version. Then, if someone/something requests with the shortened version, you redirect them to the original URL.

Hope this clarifies

Thank you for helping me.

As you said “accepts a URL as a parameter, saves the URL with a shortened version”, how do I get shortened version of the URL?

For example, lets say the URL is www.google.com, then how I get the shortened version? For example, the shortened version could be like 6212, right?

You get to decide. When I did it, I used the index from the database (increment by one with each new record).

Thank you. Great help!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.