Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 884 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 884 Bytes

URLShortener

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

Screenshots

Installation

# 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

Usage

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