Commit Graph

4 Commits (main)

Author SHA1 Message Date
iGor milhit 9fcd4d87e3
web: refactor in order to get an actual interface
- Splits the app in pages, components and services.
- Handles the routing.
- Creates an API service.
- Uses Pico CSS.
- Validates the form. TODO: to add validation state to the form.
- Updates the validation rules in the backend to be coherent on both
  sides.
- Adds tests.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-01-13 14:47:08 +01:00
iGor milhit cd99b31e0a
bread: refactor calculator into bread
- Rewrites the logic to calculate the ingredient for a bread.
- Adapt the app accordingly.
- Improves the tests.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-01-10 18:43:15 +01:00
iGor milhit d171af8d0b
config: improve management of CORS origins
- Replaces the onliner converting the value of the env variable into a
  list by a function. This allows to test this conversion.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-01-10 13:26:53 +01:00
iGor milhit 67213da237
config: implement a configuration mechanism
- Implements a configuration mechanism.
- Tests the configuration mechanism.
- Improves the tests structure.
- Configures the tests.
- Configures the ruff checker.
- Fixes lint errors.
- Documents how to test or to lint and very minimally or to set a
  development environment.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2026-01-08 18:28:02 +01:00