Advertisement
Guest User

Untitled

a guest
May 31st, 2025
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. URL Shortener
  2. Hello fellow recruitee, we need your help! We’ve been tasked to create a URL shortener, and
  3. as a new potential to our team we would like your help to create this application. The task is
  4. simple, we want to be able to create a short link for a given URL.
  5. https://some.place.example.com/foo/bar/biz should be shortened to
  6. https://{domain}/abc123
  7.  
  8. Note: bonus points for creativity on the UI side.
  9. Requirements
  10. ● Build a React application that allows you enter a URL
  11. ● When the form is submitted, return a shortened version of the URL
  12. ● Save a record of the shortened URL to a database
  13. ● Ensure the slug of the URL (abc123 in the screenshot above) is unique
  14. ● When the shortened URL is accessed, redirect to the stored URL
  15. ● If an invalid slug is accessed, display a 404 Not Found page
  16. ● You should have a list of all URLs saved in the database
  17.  
  18. Sr. Backend Test Task v2.1
  19.  
  20. Extra Credit
  21. ● Add support for accounts so people can view the URLs they have created
  22. ● Validate the URL provided is an actual URL
  23. ● Display an error message if invalid
  24. ● Make it easy to copy the shortened URL to the clipboard
  25. ● Allow users to modify the slug of their URL
  26. ● Track visits to the shortened URL
  27. ● Add rate-limiting to prevent bad-actors
  28. ● Add a dashboard showing how popular your URLs are
  29. ● Build a Docker image of your application
  30. Required Tech
  31. ● React w/ typescript for the front end
  32. ● Node.JS w/ typescript for the backend
  33.  
  34. Output format
  35. Please submit the ready task in a format of a github link for a quicker review.
  36. FAQ
  37. ● Can I use frameworks
  38. o Yes, it’s encouraged
  39. ● Can I use a language other than typescript
  40. o No, we expect the solution to be in typescript only
  41. ● What stack do you use internally
  42. o Node.js with NestJS and Postgresql for backend
  43. o React with Next.js for front end
  44. ● Should I use an ORM
  45. o If you’d like
  46. ● What database should I use
  47. o Any, this is completely up to you
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement