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 .envAfter that, configure .env with your variables.
cargo install sqlx-cli --no-default-features --features postgres
sqlx database create
sqlx migrate run
cargo runIf the cargo install command fails, use the following one:
cargo install --version=0.1.0-beta.1 sqlx-cli --no-default-features --features postgresIf 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-watchNot 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