Mini URL is a url shortener similar to bitly using NextJs and React. It uses a server side custom Map implementation to track the created urls and their respective slugs. This allows server side redirecting, but comes with the trade-off that the url and slug must be sent to a backend api to parse.
First install the npm dependencies:
npm install
Next, run the development server:
npm run dev
Finally, open http://localhost:3000 in your browser to view the website.
Was not able to finish setting up tooling for automated testing.
First install the npm dependencies:
npm install
Next, run the development server:
npm run test
Used ChatGPT as a general reference to quickly reference ts APIs. This is how I found the UUID library used in encoding the url slugs