A mini URL shortener which I did as a project for fun.
- Clone or download the repo.
- Run
npm i
in the repo folder. - Change the config to your needs (see section below).
- Run
npm start
and enjoy!
Alter the values in the config.json. These are the options you can set:
baseURL
: The URL the redirection will be performed on. Must have a trailing/
.appPort
: The port the content will be served on. Default is8151
cooldown
: Per-IP Cooldown for generating links in seconds. Default is60
, that means an IP is allowed one request within 60 seconds.expiration
: For how long a link will be kept. Default is24
Hours.