Skip to content

HeyItWorked/curtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curtail

A type-safe URL shortener in Haskell.

Built with Servant + SQLite via persistent.

Live demo: curtail.fly.dev

curtail screenshot

API

Method Route Description
POST /api/shorten Create a short URL
GET /:code Redirect to original URL
GET /api/stats/:code View click stats

Running

export BASE_URL=http://localhost:8080
stack run

Optional env vars: PORT (default 8080), DB_PATH (default urls.db).

Deployment

Deployed on Fly.io with a persistent volume for SQLite.

fly deploy

About

A type-safe URL shortener in Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages