Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 1.8 KB

README.md

File metadata and controls

78 lines (53 loc) · 1.8 KB

Gruene App

Contents

Setup

Initial Setup

  1. Install the Android SDK via the Android plugin or Android Studio
  2. Install fvm (flutter version manager)
  3. Install flutter
fvm install
  1. [Optional] Open IntelliJ settings and
    • Install the Android plugin and set the Android SDK path
    • Install the Dart plugin and set the Dart SDK path
    • Install the Flutter plugin and set the Flutter SDK path

API Setup

There are two options to connect your app to the Grüne API for development:

Staging Grüne API Setup
  1. Generate an access token for the staging Grüne API
  2. Copy staging environment
cp .env.staging .env
  1. Add your GRUENE_API_ACCESS_TOKEN to .env
Local Grüne API Setup
  1. Make sure the Grüne API is setup and running. For documentation on the necessary steps, refer to the Grüne API README.
  2. Configure local environment
cp .env.dev .env

Run the App

  1. Update translations
fvm dart run slang
  1. Run build runner to update API definitions
fvm dart run build_runner build
  1. [Optional] If you are running the app on a real device and use a local Grüne API, you need to expose the ports:
adb reverse tcp:8080 tcp:8080 && adb reverse tcp:5000 tcp:5000
  1. Run the app (development)