mirror of
https://github.com/verdigado/gruene-app.git
synced 2026-10-02 14:52:43 +02:00
B90/DIE GRÜNEN App
- Dart 97.7%
- TypeScript 1.2%
- Ruby 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .circleci | ||
| .claude/skills/release-notes | ||
| .github | ||
| .idea | ||
| .vscode | ||
| android | ||
| assets | ||
| docs | ||
| ios | ||
| lib | ||
| swaggers | ||
| tools | ||
| .env.development | ||
| .env.production | ||
| .env.staging | ||
| .fvmrc | ||
| .gitattributes | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| build.yaml | ||
| CODEOWNERS | ||
| devtools_options.yaml | ||
| LICENSE.txt | ||
| package.json | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
| slang.yaml | ||
| version.yaml | ||
B90/DIE GRÜNEN App
Contents
Setup
Initial Setup
- Install the Android SDK via the Android plugin or Android Studio
- Install fvm (flutter version manager)
- Install flutter
fvm install
- [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
- Generate an access token for the staging Grüne API
- Copy staging environment
cp .env.staging .env
- Add your
GRUENE_API_ACCESS_TOKENto.env
Local Grüne API Setup
- Make sure the Grüne Staging API is setup and running. For documentation on the necessary steps, refer to the Grüne API README.
- Configure local environment
cp .env.dev .env
Run the App
- Update translations
fvm dart run slang
- Run build runner to update API definitions
fvm dart run build_runner build
- [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
- Run the app (
development)
