https://github.com/litestar-org/litestar-hello-world-stale
The minimum Litestar application
https://github.com/litestar-org/litestar-hello-world-stale
litestar litestar-api litestar-framework litestar-template starlite starlite-api starlite-framework starlite-template
Last synced: 6 months ago
JSON representation
The minimum Litestar application
- Host: GitHub
- URL: https://github.com/litestar-org/litestar-hello-world-stale
- Owner: litestar-org
- License: mit
- Archived: true
- Created: 2022-06-19T12:24:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-16T21:28:51.000Z (over 1 year ago)
- Last Synced: 2024-08-18T14:03:02.887Z (8 months ago)
- Topics: litestar, litestar-api, litestar-framework, litestar-template, starlite, starlite-api, starlite-framework, starlite-template
- Language: Python
- Homepage:
- Size: 368 KB
- Stars: 17
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
![]()
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)
[](https://sonarcloud.io/summary/new_code?id=starlite-api_starlite-hello-world)[](https://discord.gg/X3FJqy8d2j) [](https://matrix.to/#/#starlitespace:matrix.org) [](https://reddit.com/r/litestarapi)
# 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:```toml
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`