Commit 34aab249 authored by Luc Didry's avatar Luc Didry

First import. Working

parents
local/*
lstu.db
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
This diff is collapsed.
#LSTU
##What LSTU means ?
It means Let's Shorten That Url.
##License
Lstu is licensed under the terms of the WTFPL. See the LICENSE file
##Dependancies
* Carton : Perl dependancies manager, it will get what you need, so don't bother for dependancies (but you can read the cpanfile if you want)
```
cpan Carton
```
##Installation
After installing Carton :
```
git clone https://github.com/ldidry/lstu.git
cd lstu
carton install
```
##Usage
```
carton exec ./Lstu daemon -m production
```
Yup, that's all, it will listen at "http://\*:3000".
For more options (interfaces, user, etc.), run :
```
carton exec ./Lstu help daemon
```
##How many urls can it handle ?
Well, there is 8 361 453 672 available combinations. I think the sqlite db will explod before you reach this limit. If you want more shortened URLs than that, open the Lstu file and change
```
$shortener->(8)
```
with a higher number.
##Reverse proxy
You can use a reverse proxy like Nginx or Varnish (or Apache with the mod\_proxy module). The web is full of tutos.
##Others projects dependancies
Lstu is written in Perl with the Mojolicious framework and uses the Twitter bootstrap framework to look not too ugly.
requires 'Mojolicious';
requires 'ORLite';
requires 'Data::Validate::URI';
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment