Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.48 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.48 KB

mayday

~ work in progress ~

primary goal of the app is to save lives when people are outside alone, protection, and vigilance without being too overwhelming or limiting the scope of use.

1. Tracking and Alerts Overview

  1. Client Location Tracking: Each client periodically sends its location to the backend, using "what3words" the location can be easily communicated verbally.
  2. Alert Triggering: Clients can trigger alerts based on certain conditions.
  3. Notification of Nearby Clients: When a client triggers an alert, notify nearby clients and integrations such custom contacts or EMS services.

prerequisites

docker
make
rust
npm/node

Development workflow

# start db in docker and run rust code local
make dev

# build and start both db and mayday with docker-compose up -d
make init

# build and start both db and mayday with docker-compose up
make up 

docker/.env

MAYDAY_HOST=127.0.0.1
MAYDAY_PUBLIC_URL=http://localhost
MAYDAY_PORT=8202
MARIADB_HOST=127.0.0.1
MARIADB_PORT=3308
MARIADB_USER=maydayapp
MARIADB_PASS=password
MARIADB_APP_PASS=password
MARIADB_DB=mayday
DATABASE_URL="mysql://$(MARIADB_USER):$(MARIADB_PASS)@$(MARIADB_HOST):$(MARIADB_PORT)/$(MARIADB_DB)"
SQLX_LOGGING=false

install sea-orm cli

cargo install [email protected]

References

https://github.com/juhaku/utoipa/blob/master/examples/todo-actix/src/todo.rs
https://docs.rs/utoipa/latest/utoipa/attr.path.html#examples