This is an open source software for managing associations, clubs and other places that require coordination between multiple parties
-
Install Rust, follow the steps at https://rustup.rs/
-
Install Postgres or run docker with:
docker compose up-
Migrate database with
sqlx database create sqlx migrate run
-
Move the
.env.examplefile to.envand replace or add fields. -
Run
cargo run -- runto run the project.
First you need a super user, create one with
cargo run -- create-user superuser@hood.com passwordGet an authentication token with:
curl -X POST \
-H "Content-Type: application/json" \
-d '{"email": "superuser@hood.com", "password": "password"}' \
http://127.0.0.1:8000/authmutation add_association { createAssociation(association: { name: "foo", neighborhood: "Foo", country: "BR", state: "BA", address: "Foobar street", }) { id, name } }
cargo test