New project
Configure, preview every file, download.
my-app · Python API (fastapi)
14 files
README.md# my-app
my-app — generated with DevHub
## Getting started
```bash
uv sync
uv run uvicorn my_app.main:app --reload # http://localhost:8000/health
```
## Commands
| Command | What it does |
|---|---|
| `uv run uvicorn my_app.main:app --reload` | Start the dev server |
| `uv run pytest` | Run the tests |
| `uv run ruff check .` | Lint |
| `uv run ruff format .` | Format |
## Project structure
```
src/my_app/main.py the FastAPI app
tests/ pytest tests
```
Requires [uv](https://docs.astral.sh/uv/) (it installs Python 3.12 for you).
Interactive API docs: http://localhost:8000/docs
## Docker
```bash
docker build -t my-app .
docker run --rm -p 8000:8000 my-app
```
## CI
Every push and pull request runs the checks in `.github/workflows/ci.yml`.
## License
MIT
---
Generated with [DevHub](https://github.com/codeitronics/devhub) by CodeITronics.