19 lines
436 B
Markdown
19 lines
436 B
Markdown
# rs-links
|
|
|
|
A basic link shortener.
|
|
|
|
## Building
|
|
|
|
Build like any other Rust project. However, you will need to have a database set up at compile time, otherwise compilation will fail when the `query!` macro cannot find a database.
|
|
|
|
You can set this up with the `sqlx` CLI:
|
|
```shell
|
|
cargo install sqlx-cli
|
|
export DATABASE_URL=sqlite:links.db
|
|
sqlx database create
|
|
sqlx migrate run
|
|
cargo run
|
|
```
|
|
|
|
The application binds to `0.0.0.0:24580`.
|