peterschutt / starlite-hello-world

The minimum Starlite application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starlite logo

Quality Gate Status Coverage Technical Debt Maintainability Rating Reliability Rating Vulnerabilities Bugs

starlite-hello-world

Minimum Starlite API Implementation.

$ poetry install

$ poetry run uvicorn main:app --reload

$ curl localhost:8000/ -w "\n"

To use for Starlite development

If you want to use this app to test a local version of Starlite, the starlite dependency in pyroject.toml to:

starlite = {path = "../starlite", develop = true}

This assumes that Starlite and this app exist in the same directory.

Run uvicorn with:

$ poetry run uvicorn main:app --reload --reload-dir "../starlite/starlite"

Code Quality

After cloning:

$ pre-commit install

Run on all files:

$ pre-commit run --all-files

Run a specific hook:

$ pre-commit run mypy --all-files

About

The minimum Starlite application

License:MIT License


Languages

Language:Python 100.0%