This is the Graph QL API for AiudaPR. AiudaPR is a web application for the notification of help and utility spots. Find more about AiudaPR here
- Install Elixir with:
brew install elixir
- Install PGSQL with:
brew install postgresql
mix deps.get
make init-psql
make start-psql
make prepare # if this fails continue to the next step
make setup-psql
make migrate
make server
spots {
spots {
id
kind
lat
lon
}
}
mutation CreateSpot {
spot(kind: Enum<WIFI, COMIDA, OASIS, ELECTRICIDAD, REFUGIO>, lat: <float>, lon: <float>) {
id
kind
lat
lon
}
}
mutation DeleteSpot {
spotForDeletion(id: <id>)
}
mutation CreateRegistration {
registration(user: {name: <string>, phone: <string>}, location: {tag: <string>, lat: <float>, lon: <float>}) {
tag
lat
lon
}
}
- Fork it ( https://github.com/[my-github-username]/aiudapr_api/fork )
- Create your feature branch (git checkout -b feature/my_new_feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request