backend & frontend for char.lt
You can not 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 8f74ce85c3 Switch to rustls runtime for sqlx 2 weeks ago
migrations initial commit :) 7 months ago
src Implement URL shortening feature set 3 weeks ago
static Space every cell 3 weeks ago
.editorconfig initial commit :) 7 months ago
.gitignore Add .env to gitignore 3 weeks ago
Cargo.lock Switch to rustls runtime for sqlx 2 weeks ago
Cargo.toml Switch to rustls runtime for sqlx 2 weeks ago
README.md We have to run migrations before we can build 7 months ago
build.rs initial commit :) 7 months 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