Getting Started
1. Install Flutter
Install the latest Stable version of Flutter
Recommended: Use Flutter Version Manager to install Flutter (https://github.com/leoafarias/fvm)
2. Install the Android SDK
Recommended : Use Android Studio to configure the Android SDK and your virtual device
Install Android Studio
In the Settings go to Languages & Frameworks and select Flutter.
Select the correct path for Flutter SDK
Do the same for the Dart SDK
3. Run the backend
Install docker
Clone the backend repo
Run
docker compose up -d
4. Configure firebase
Install the Firebase CLI
Run
firebase login
to log in Firebase on your PCLog in your Google Account
Create a new firebase project
Install
flutterfire
withdart pub global activate flutterfire_cli
Delete the
firebase.json
file at the app root directoryRun this command to configure firebase for the dev flavor :
flutterfire configure \
--project=<FIREBASE_PROJECT_NAME> \
--out=lib/firebase_options_dev.dart \
--ios-bundle-id=fr.atomicblend.app-dev \
--android-package-name=fr.atomicblend.appdev \
--ios-out=ios/config/dev \
--android-out=android/app/src/dev \
--macos-out=macos/config/dev
5. Set up the config
Copy
assets/configs/config.example.json
todev.json
Edit
env
to devEdit
restApiUrl
withhttp://localhost:8080
Change any other settings you might want to
6. Install dependencies
flutter pub get
7. Run Codegen
flutter pub run build_runner build --delete-conflicting-outputs
8. Select your device
Launch your virtual Android device or select your physical device in your IDE (using the command palette on Visual Studio Code or in the top menu bar on Android Studio / JetBrains IDE)
9. Run the App
To run the app in the dev flavor, ie with the dev configurations we set before :
flutter run -t lib/main_dev.dart --dart-define APP_ENV=dev --dart-define REST_API_URL=http://localhost:8080/ --flavor dev
Last updated