Skip to content
/ rust-ib Public

Prototype imageboard in Rust. Developed whenever i have time.

Notifications You must be signed in to change notification settings

cnsr/rust-ib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABOUT

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.

INSTALLATION

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

DEVELOPMENT

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

About

Prototype imageboard in Rust. Developed whenever i have time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages