This is a first aid app for people in need of help. In an emergency, this app makes it possible to inform qualified helpers in the surrounding area and thus arrive at the scene of the emergency even faster than an ambulance.
git clone https://github.com/Just-another-Muensterhack/helpwave-backend.git helpwave
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r app/requirements.txt
Change the Directory into the root project folder and start the postgres database with docker-compose.
docker-compose up -d postgres
Environment files: .api.env
, .postgres.env
Set the environment variables
set -a
. .api.env
. .postgres.env
set +a
Additionally, run the following commands if you are in dev mode.
export POSTGRES_HOST=localhost
unset SECRET_KEY_FILE
POSTGRES_HOST=localhost;POSTGRES_USER=postgres;POSTGRES_PASSWORD=S3cr3T;POSTGRES_NAME=api;POSTGRES_DB=api;POSTGRES_DB=api
python3 ./app/main.py
Running our first migration (docs)
cd app && alembic upgrade head
Auto generating migration (docs)
cd app && alembic revision --autogenerate -m "<your message>"
python -m black ./app/ --exclude --check --line-length 120
restart plain postgres container
docker-compose down postgres
sudo rm -rf /srv/postgres/postgres-data
docker-compose up -d postgres