This is the source code for my URL shortener. I made it as an experiment to see how URL shorteners work under the hood. The source is licensed under MIT so feel free to hack away!
Check out the live version: https://yuk.nu
Install globally using NPM.
npm i @mrgalaxy/shorturl -gCheck that the tool was installed correctly.
shorturl-server --helpTo run a local server, ensure a local Redis server has been started at the default port. Then run the following command:
shorturl-serverThis will start a local server at http://localhost:3000.