|Neil 64135ea63a||10 months ago|
|assets||10 months ago|
|migrations||10 months ago|
|src||10 months ago|
|templates||10 months ago|
|.gitignore||10 months ago|
|Cargo.toml||10 months ago|
|LICENSE||10 months ago|
|README.md||10 months ago|
|lang.json||10 months ago|
Link shortener in Rust.
Developed to be as minimalist and lightweight as possible.
Powered by the Rocket framework using (server-side) Handlebars templates.
Official instance: https://s.42l.fr/
git clone https://git.42l.fr/42l/rs-short.git
Edit what you need. You might want to change the following elements:
main.rs: replace with your instance hostname
main.rs: replace with the hostname of the organization hosting the project
assets/hoster-logo.png: replace with the logo of your organization
assets/logo.svg: the software logo
assets/background.jpg: the default background
Create a file named
Rocket.toml at the project root, containing the following:
[global] address = "<ADDRESS>" template_dir = "templates" secret_key = "<SECRET KEY>" [global.databases.sqlite_database] url = "db/db.sqlite"
<ADDRESS> by the address to listen on
<SECRET KEY> by the result of the command
openssl rand -base64 32
Eventually change the database storage path. You can specify more parameters following the Rocket documentation.
cargo run --release
The initial version of the software has been developed in one week ; there’s still a lot to do.
Here are many ways to contribute:
templates.rsand add your language in the ValidLanguages structure.
main.rsto something more readable
If you like the work done on this project, please consider to donate or join the association. Thank you!