Skip to content

jathak/shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A very simple URL shortener.

pub get
dart bin/server.dart prep  # copy the auth token that is output
dart bin/server.dart <port>

Go to /_auth-<auth token> and it should redirect you to /_manage, where you can add or delete short links. Change [base] to configure where an empty path redirects to. Short links can be anything, provided they don't start with an underscore.

All short links (plus the auth token) are stored in data.json. Delete this if you want to clear all short links. Rerun the prep command to change the auth token. The short links will be left untouched.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages