To set up the environment variables and Firebase for the project, follow these steps:
- Navigate to the
assets/
folder and create a.env
file.
-
Open the
.env
file and copy this template. Replace the placeholders with the URLs provided by the organizers.API_URL=<your-api-url> CDN_URL=<your-cdn-url>
- Ensure the
.env
file is correctly placed in the root directory of the project.
- Make sure you are added to the Firebase account of Team Envision.
- Contact the Firebase owner to get the necessary permissions.
- If you haven't installed Firebase CLI, download it from:
👉 [FlutterFire CLI Installation Guide][https://firebase.flutter.dev/docs/cli]
-
Navigate to the root of your Flutter project and run:
dart run flutterfire configure
-
Follow the CLI prompts:
- Select the Firebase project for Aaruush.
- Choose the platforms (iOS, Android).
- The
firebase_options.dart
file will be generated automatically.
- Run the following command to fetch dependencies and start the project:
-
Make sure you are using Flutter version
3.27.3
. -
To check your current Flutter version, run:
flutter --version
-
If you need to switch to Flutter
3.27.3
, run:flutter version 3.27.3
-
Or You can use FVM for running multiple version, checkout: 👉 [FVM DOCS ][https://fvm.app/documentation/getting-started]