A modern self-hosted URL Shortener for both individuals and organizations that’s easy to set up and use.
Currently this project is still in its early stages. It is a fully functional URL shortener, but many quality of life features are still to come.
Just click here and follow the instructions on screen to deploy:
To have logins persist between app refreshes, create an environment variable with the name
ROCKET_SECRET_KEY and then run
openssl rand -base64 32 in a terminal and paste the result in the value.
You can deploy with docker to a wide range of hosts as long a you provide these environment variables at runtime:
PORT(Most often passed by the host)
DATABASE_URL(For the postgres database. Incudes login info for database)
ROCKET_SECRET_KEY(Used for signing private cookies. Generate it yourself with
openssl rand -base64 32)
cargo install diesel_cli
.envfile that has the contents
DATABASE_URL=postgres://[YOUR USERNAME]:[YOUR PASSWORD]@localhost/linkr
rustup override set nightly
After creating a new migration either run
diesel print-schema > './src/schema.rs' or
diesel migration run