Commure interview question

Fetch some data from an API and do some data manipulation on it

Interview Answer

Anonymous

24 Jul 2025

Make a simple full stack app for URL shortening. I should be able to give a link and get a short link. I should be able to go to this short link and get redirected to my long link. Make sure links persist through app restarts. (Optional): add “link expiry”: limit the number of times a shortlink can be used You can use some of these resources to start - - Map {shortlink -> long link} /new_link {link} -> {your app’s URL/shortlink} /{short_link} -> return redirect to link For front-end: Simple UI with input box to submit link and display short link to user