Prototype for our HealthFirst AI web app.
Project Dependencies
- Docker
- Poetry
- Supabase CLI
Additional Project Documentation Dependencies
supabase link --project-ref yhkoibydboihnkcupibk
And enter the database password
To fetch the newest migration to the remote DB,
supabase db remote commit
Finally, run
supabase start
Reference the Supabase Doc, for other stuff.
-
Ensure you have Docker installed.
docker --version
-
Clone the repo
git clone https://github.com/healthfirstai/prototype-backend cd prototype-backend
-
Create
.env
file fromexample.env
and change the valuescp example.env .env
-
Run docker compose up
Building for first time
docker compose up --build -d
Fresh Rebuild
docker compose build --no-cache docker compose up -d --build
-
Setup Python virtual environment with Poetry
poetry config virtualenvs.in-project true # Make poetry use local .venv folder poetry install # Install dependencies source .venv/bin/activate # Activate virtual environment in zsh source .venv/bin/activate.[fish|csh] # For other shell types
-
Activate virtual environment
source .venv/bin/activate # Activate virtual environment in zsh source .venv/bin/activate.[fish|csh] # For other shell types
-
CLI Help
cli # or python3 healthfirstai_prototype/cli.py
-
Save dependencies to requirements.txt
poetry export --without-hashes --format=requirements.txt > requirements.txt
-
Build and serve documentation
mkdocs build mkdocs serve -a localhost:9000 # Runs on port 9000
-
Start Streamlit app
streamlit run healthfirstai_prototype/streamlit_frontend/🏠_Home.py # Runs on port 8501
-
Start FastAPI Development Web Server
uvicorn healthfirstai_prototype.main:app --reload # Runs on port 8000
-
Export TODOs to Markdown
leasot --reporter markdown healthfirstai_prototype/*.py > docs/todo.md | prettier --write docs/todo.md
-
Build CLI Docs
typer healthfirstai_prototype/cli.py utils docs --output docs/cli.md