Skip to content

Commit ebe1caf

Browse files
committed
Beyond initial config
1 parent 4f59578 commit ebe1caf

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,36 @@ If there is exactly one user in the database, you can make it admin using the fo
357357
curl -X POST http://localhost:8000/users/make-admin
358358
```
359359

360-
## Install docker or an equivalent
360+
---
361+
362+
# Beyond initial configuration
363+
364+
## Install Docker or an equivalent
361365

362366
Install docker and the compose plugin (https://docs.docker.com/compose/install/)
363367

364368
`docker-compose.yaml` includes the minimal settings required to run Hyperion using docker compose.
365369

366370
> During dev, `docker-compose-dev.yaml` can be used to run the database, the redis server etc... If you really want to run the project without docker, you can do it but you will have to install the database, redis, etc ... yourself or disable corresponding features in the .env file (which is not recommended).
367371
368-
---
372+
## Linting and formating
373+
374+
To lint and format, we currently use `Ruff`. We also use `Mypy` for the type checking.
375+
376+
Before each PR or git push you will need to run `ruff check --fix && ruff format` in order to format/lint your code and `mypy .` in order to verify that there is no type mismatch.
377+
378+
## Use Alembic migrations
379+
380+
See [migrations README](./migrations/README)
381+
382+
> [!WARNING]
383+
> On SQLite databases, you have to drop the database and recreate it to apply the new DDL.
384+
385+
## OpenAPI specification
386+
387+
API endpoints are parsed following the OpenAPI specifications at `http://127.0.0.1:8000/openapi.json`.
388+
389+
A Swagger UI is available at `http://127.0.0.1:8000/docs`. For authentication to work, a valid `AUTH_CLIENT` must be defined in the `.env`, with `http://127.0.0.1:8000/docs/oauth2-redirect` as the redirect URI, and `scope=API` must be added to the authentication request.
369390

370391
## Configure Firebase notifications
371392

0 commit comments

Comments
 (0)