sujan58/URL_shortner ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple URL shortener app where someone can paste a long link and get back a short version they can copy and share.
I want a clean page with a form to enter the long URL, a button to shorten it, and a results area that shows the new short link clearly. If possible, make the short link work when someone opens it, so it sends them to the original URL. Please keep the design simple and easy to use.
Use the existing Java backend if that is what the project is set up for, and make sure the frontend and backend work together smoothly. If you need to look up current docs online, go ahead. I’d also like basic validation so bad or empty URLs do not get shortened, and a friendly message if something goes wrong. If it makes sense, include a little history of recently shortened links on the page.