Skip to content

adfinis/node-url-urlshortener

Repository files navigation

URLShortener

Simple node app for an URL shortener service. It creates URLs like https://ad-sy.ch/b

Screenshots

Installation

# adduser urlshortener
# git clone git@github.com/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

Usage

Pretty self-explanatory, go to yoururl.tld/admin for creating a new URL.