a simple link shortener with node.js
- express
- express-rate-limit
- shorten long urls
- links can be migrated from legacy PHP version (
npm run migrate) - rate limiting
- domain blacklists (
blacklist.json) - custom pathname badwords blocker (
badwords.json)
Edit config file, and run npm run init.
Terminal would asks you to reset links and stats. If this is your first initialization, then type yes and enter.
(if you typed yes when you have links or stats stored, they're going to be erased.)
After that, just run npm run start and you're ready to go!