Skip to content

Commit b87be9a

Browse files
committed
Beyond initial config
1 parent efa8f05 commit b87be9a

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
@@ -355,15 +355,36 @@ If there is exactly one user in the database, you can make it admin using the fo
355355
curl -X POST http://localhost:8000/users/make-admin
356356
```
357357

358-
## Install docker or an equivalent
358+
---
359+
360+
# Beyond initial configuration
361+
362+
## Install Docker or an equivalent
359363

360364
Install docker and the compose plugin (https://docs.docker.com/compose/install/)
361365

362366
`docker-compose.yaml` includes the minimal settings required to run Hyperion using docker compose.
363367

364368
> 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).
365369
366-
---
370+
## Linting and formating
371+
372+
To lint and format, we currently use `Ruff`. We also use `Mypy` for the type checking.
373+
374+
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.
375+
376+
## Use Alembic migrations
377+
378+
See [migrations README](./migrations/README)
379+
380+
> [!WARNING]
381+
> On SQLite databases, you have to drop the database and recreate it to apply the new DDL.
382+
383+
## OpenAPI specification
384+
385+
API endpoints are parsed following the OpenAPI specifications at `http://127.0.0.1:8000/openapi.json`.
386+
387+
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.
367388

368389
## Configure Firebase notifications
369390

0 commit comments

Comments
 (0)