- receive a long URL, shorten it, save and send back
- resolve the actual redirect from shorten link to the original
npm install
cp server/bin/config.json.sample server/bin/config.json
npm run start
To get your link shorten visit /encode route with query param url The url should start with http://, https:// etc.
Example
http://localhost:3000/encode?url=https%3A%2F%2Fwww.google.com
Then you can use your shortlink and the server will redirect you to the desired page
Example
http://localhost:3000/{shortlink}