Skip to content

deathlesz/shortener

Repository files navigation

URL Shortener

A simple URL shortener website backend built with Rust, Axum & SQLx.

Building and running

  1. You must have Rust installed on your system.
  2. Clone the repository:
git clone https://github.com/deathlesz/shortener.git
  1. Build it using cargo:
cd shortener
cargo build # or cargo build --release
  1. Set the environment variables shown in .env.example.
  2. Run it!
# using cargo
cargo run # or cargo run --release

# or manually
./target/{debug,release}/shortener

As an alternative, Kubernetes manifests are provided in k8s directory.

License

The project is distributed under the terms of AGPL-3.0 license.

About

A URL shortener API based on Axum.

Topics

Resources

License

Stars

Watchers

Forks

Contributors