backend & frontend for char.lt
 
 
 
 
Go to file
Charlotte Som 8f74ce85c3 Switch to rustls runtime for sqlx
We don't use TLS anyways since we're running sqlite and this lets us
deploy for musl
2022-07-30 00:33:38 +01:00
migrations initial commit :) 2022-01-14 07:02:31 +00:00
src Implement URL shortening feature set 2022-07-26 04:59:58 +01:00
static Space every cell 2022-07-26 05:12:58 +01:00
.editorconfig initial commit :) 2022-01-14 07:02:31 +00:00
.gitignore Add .env to gitignore 2022-07-22 05:45:31 +01:00
Cargo.lock Switch to rustls runtime for sqlx 2022-07-30 00:33:38 +01:00
Cargo.toml Switch to rustls runtime for sqlx 2022-07-30 00:33:38 +01:00
README.md We have to run migrations before we can build 2022-01-14 07:28:04 +00:00
build.rs initial commit :) 2022-01-14 07:02:31 +00:00

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