Just for learn - Basic API for making short url
rename .env.sample to .env and modify as needed.
URL_SORT_API_PORT=3003
MONGO_URL_SHORT_DB_NAME=url-shortener
MONGO_URL_SHORT_DB_HOST=localhost
`
$ npm install
$ node -r esm rvc-api.js
http://{host}:{port}/list
http://{host}:{port}/
http://{host}:{port}/l/{ShortId}
http://{host}:{port}/