Inspiration
For many days I seen that in the linkedin when we post anything and provide a URL. It is shorten automatically. When we click on the URL it will go to the exact URL we posted.
What it does
It takes the URL which you wanna shorten and take it as a input and it will generate a short version of that URL.
How we built it
It takes the URL form the user and then in the backend a short id unique id is create and the original URL and the short id is stored in the Database and the short id is send to the frontend. The frontend will create a new URL using the short id and give it to the user.
When the user go to the new link the short id is retrieved form the URL path and goes to the backend. Then in the short id is searched in the database and send the stored original URL to the frontend and redirected to that URL.
Challenges we ran into
While create in the project I have a problem in the redirection. In react it does not redirect automatically when we send the statuscode 301 for permanent redirect and I have to change it to 200 for it to be work.
Accomplishments that we're proud of
I am proud that I am able to create this project in a short deadline.
What we learned
I have learned how to not recreate the wheel. Which means in this project when you give the same URL twice it don't store the URL twice It only stores the URL once and If anyone request the same URL to shorten it will give the existing short id
What's next for mcShort
I am think about to make it a all in one platform like adding image format convertor, Image compressor and many more.
Log in or sign up for Devpost to join the conversation.