Skip to content

MixKlim/happymeter

Repository files navigation

happymeter 😊

Build Coverage Status

Find out how happy you are

ML model based on Somerville Happiness Survey Data Set.

FastAPI backend

Native front-end (HTML + CSS + JS)

Streamlit front-end

SQLite / PostgreSQL Database

Run locally (from root folder):

  • Create virtual environment: python -m venv .venv
  • Install dependencies: poetry install --no-root
  • Launch backend: make backend
  • Launch front-end:
  • Pre-commit: make eval
  • Unit tests: make test
  • Coverage badge: make cov
  • End-to-end build (eval + test + cov): make build

Containers:

  • Populate .env with POSTGRES_HOST, POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB
  • Docker backend: make docker-backend
  • Docker frontend: make docker-frontend
  • Docker compose: make docker-compose

Deploy to Azure:

  • Run bash deploy_azure.sh