Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

litestar-org/litestar-hello-world-stale

Repository files navigation

Litestar Logo - Light Litestar Logo - Dark

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

Discord Matrix Reddit

litestar-hello-world

Minimum Litestar Implementation.

$ poetry shell

$ poetry install

$ litestar run --reload

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

To use for Litestar development

If you want to use this app to test a local version of Litestar, the litestar dependency in pyproject.toml to:

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

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

Run uvicorn with:

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

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