Skip to content
forked from cmurphy/lilurl

A simple URL shortener using SQLite as the backend database.

License

Notifications You must be signed in to change notification settings

nickchappell/lilurl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lilurl

About

This is a simple URL shortener written in ruby on Sinatra and using SQLite as the backend database.

Working example at http://krinkle.nom.co/lilurl

Dependencies:

Gems: sqlite3, sinatra, bundler

Usage

Development

To start the web server, run:

ruby lilurl.rb

To view the site, navigate to:

http://localhost:4567

or:

http://your.domain:4567

Production

Install apache and the passenger gem, install the passenger module in apache, and follow passenger's instructions to modify your apache configuration and create a virtual host.

API

lilurl can accept a POST request with parameter 'oldurl' and optional parameter 'postfix' and returns a JSON result.

About

A simple URL shortener using SQLite as the backend database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 78.1%
  • CSS 21.9%