riolet / longs

URL Shortener built on top of WAFer

Home Page:https://lon.gs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lon.gs

Component Build Status Demo
Longs Build Status https://longs-longs.hotbed.io/
Welcome to Lon.gs, the url shortner.

Lon.gs is built upon WAFer, a light flyweight platform for creating lightning fast and scalable network applications using the C language.

Lon.gs is built with SQLite, a self-contained, embeddable, zero-configuration SQL database engine, so no database setup is necessary.

Lon.gs will happily do 10K concurrent connections on an AWS t2.nano, where our website is being served from.

You can configure the app using the following environmental variables:

Option Defualt Value
PORT 4242
BASE_URL lon.gs
DB_PATH URL_Records.db
HASH_LENGTH 5

Docker

You may use our official image on Docker Hub.

docker docker pull riolet/longs
docker run -p 80:80 riolet/longs

This repo includes a Dockerfile, which allows it to be built into a docker container.

docker build --tag=longs .
docker run -p 80:80 longs

This will start Lon.gs listening on port 80 on your Docker net IP

About

URL Shortener built on top of WAFer

https://lon.gs

License:GNU General Public License v2.0


Languages

Language:C 93.4%Language:Objective-C 6.5%Language:C++ 0.0%Language:Makefile 0.0%