/kairos

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Usage

Export environment variables.

export AWS_ACCESS_KEY_ID="changeme"
export AWS_SECRET_ACCESS_KEY="changeme"
export DEFAULT_AWS_REGION="changeme"
export BUCKET_NAME="changeme"
export SQLALCHEMY_DATABASE_URL="sqlite:///./sqlite_changeme.db"

Run demo

python demo.py

Run API server

uvicorn main:app --reload

Development

Lint and formatting

Run ruff check . in order to lint.

Run ruff check . --fix in order to fix lint errors.

See Ruff docs

Testing

Run tests with pytest

See

Generate OpenAPI client

Run under kairos-console/

cd kairos-console
npm run generate-openapi-client

Get debug level logg with export JAVA_OPTS="${JAVA_OPTS} -Dlog.level=debug"