• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

URL Shortener built on top of WAFer

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