Simple node app for an URL shortener service. It creates URLs like https://ad-sy.ch/b
# adduser urlshortener
# git clone [email protected]/adfinis/node-url-urlshortener /var/www/urlshortener
# chown urlshortener:urlshortener /var/www/urlshortener/
# cd /var/www/urlshortener
# mysql urlshortener < db/create.sql
# vim db.js # <- adjust username and password
# su - urlshortener
$ cd /var/www/urlshortener
$ npm install
$ pm2 start --name=urlshortener npm -- start
Pretty self-explanatory, go to yoururl.tld/admin for creating a new URL.