/shorturl

A URL shortening service powered by Node.js and Redis

Primary LanguageJavaScriptMIT LicenseMIT

URL Shortener Service

npm Build Status

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

Install globally using NPM.

npm i @mrgalaxy/shorturl -g

Check that the tool was installed correctly.

shorturl-server --help

Usage

To run a local server, ensure a local Redis server has been started at the default port. Then run the following command:

shorturl-server

This will start a local server at http://localhost:3000.