An open API service indexing awesome lists of open source software.

https://github.com/adfinis/node-url-urlshortener

Simple node app for an URL shortener service
https://github.com/adfinis/node-url-urlshortener

bitly nodejs url url-shortener

Last synced: about 1 year ago
JSON representation

Simple node app for an URL shortener service

Awesome Lists containing this project

README

          

# 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.