improve project structure for api
This commit is contained in:
parent
1a0f3726d8
commit
7fa9867a38
7 changed files with 42 additions and 11 deletions
10
README.md
10
README.md
|
|
@ -9,3 +9,13 @@ Project structure:
|
|||
├── api # Python application interacting with HomeMatic and providing the API.
|
||||
└── app # Web UI
|
||||
```
|
||||
|
||||
## API Development
|
||||
|
||||
Most things should automatically be set up with the included [direnv script](./.envrc.dist) but if you don't use that, take the following steps:
|
||||
|
||||
1. Go to the api/ directory
|
||||
2. Run `uv venv` to create a python virtual environment
|
||||
3. Install all dependencies of the dooris project into that virtual environment with `uv sync`
|
||||
4. Run a development server `uv run uvicorn dooris_api:app --reload`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue