Half-assed imageboard backend, written in Rust, currently with 0.5 features and 0 documentation. There will be something like that in the future, but right now I am too busy with work to even consistently code this pet project of mine.
First of all, run:
cp .env.example .env
After that, configure .env
with your variables.
cargo install sqlx-cli --no-default-features --features postgres
sqlx database create
sqlx migrate run
cargo run
If the cargo install
command fails, use the following one:
cargo install --version=0.1.0-beta.1 sqlx-cli --no-default-features --features postgres
If you have make
isntalled, use make run
to run dev server. Hot reload included.
To run those, you'll need to install following modules:
cargo install systemfd
cargo install cargo-watch
Not sure how to compile just yet, it likely wont even run either way lol. No tests just yet. Not sure if ever will be.
To create a new migration, use the following command:
sqlx migrate add <name>
New migrations will be added to the ./migrations/
folder. You can apply them with aforementioned command
sqlx migrate run