Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 860 Bytes

File metadata and controls

21 lines (13 loc) · 860 Bytes

Mobile App

This is the mobile app for shareloop.

Requirements

  • a running server
  • flutter (handled by mise)
  • java & openapi-generator-cli (only for codegen, handled by mise)

Getting Started

Use $ mise run app:dev, $ flutter run from app (the current dir) or your IDE's features to start the mobile app.

API

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