backend & frontend for char.lt
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Charlotte Som e97513d3a8 Shorten link for bun/buns 2 months ago
migrations initial commit :) 1 year ago
src Implement URL shortening feature set 8 months ago
static Shorten link for bun/buns 2 months ago
.editorconfig initial commit :) 1 year ago
.gitignore Add .env to gitignore 8 months ago
Cargo.lock Switch to rustls runtime for sqlx 8 months ago
Cargo.toml Switch to rustls runtime for sqlx 8 months ago
README.md We have to run migrations before we can build 1 year ago
build.rs initial commit :) 1 year ago

README.md

char.lt

  • website (static folder)
  • filedump (misc folder - gitignored)
  • personal url shortener :)
    • random gen prefix with _ + mixed-case 5-char alphabetical
    • custom links: anything goes (randoms take precedence though so maybe dont prefix _)

setup

$ touch data.db
$ export DATABASE_URL="sqlite://data.db"
$ sqlx migrate run
$
$ cd static/inter
static/inter $ # download inter.zip from GitHub and extract the contents of 'Inter Web'
static/inter $ cd ../../
$
$ cargo run --release
[...]
Listening at http://127.0.0.1:8000