A tiny URL shortener written in Rust
- Provide a simple, low-latency API to shorten links (using
rocket
crate) - Minimal configuration set-up (using
dotenv
crate) - Basic authentication
- All-in-one solution for link shortening
- This includes: link expiry, passwords, etc.
- Deduplication
I may write a smarter more feature-complete version, but this is all I need as of right now 😄
You can run this project with cargo run
.
For production use, make sure to create a Rocket.toml
and .env
configuration, and run using cargo run --release
.
You can build this project with cargo build
.
- API key to prevent unauthorized use
- Write some tests
- Refactor into nicer modules
smlr
is licensed under the GNU Affero General Public License
3.0.