Skip to content

enriquefynn/my-hood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Hood 🏘️

This is an open source software for managing associations, clubs and other places that require coordination between multiple parties

Installing dependencies

  • 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.example file to .env and replace or add fields.

  • Run cargo run -- run to run the project.

Create a user

First you need a super user, create one with

cargo run -- create-user superuser@hood.com password

Get 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/auth

Examples of queries

Add association

mutation add_association { createAssociation(association: { name: "foo", neighborhood: "Foo", country: "BR", state: "BA", address: "Foobar street", }) { id, name } }

Tests

cargo test

About

Helps a neighborhood association to organize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •