This is the mobile app for shareloop.
- a running server
- flutter (handled by mise)
- java & openapi-generator-cli (only for codegen, handled by mise)
Use $ mise run app:dev, $ flutter run from app (the current dir) or your IDE's features to start the mobile app.
The API connects by default to http://127.0.0.1:4000/api. To configure this, provide a API_BASE_URL define:
$ flutter run --dart-define=API_BASE_URL=http://production.example.com/api
The API code lives in a separate package ./gen/api, which is generated from an OpenAPI spec in ../api with $ mise run app:api:gen. Code generation requires Java and openapi-generator-cli (automatically downloaded when running the task).
Example usage of the API: ./lib/state/items.dart