Docs
Launch the App

Launch the App

It's time to explore the template that you have just purchased.

Each of the templates has two flavors: development & production.

On one hand, the development flavor runs the application using sample data and does not connect to a real authentication system, to an external database or any external services. On the other hand, the production flavor connects the app to external services like Stripe, Firebase and the Google Maps Platform APIs.

Run the App with the Development Flavor

You can run the development flavor as soon as you download the source code without making any changes to the codebase. Just make sure that the project has all the dependecies set-up.

# Install the dependencies
flutter pub get

In some cases, you might have to update the iOS dependencies before launching the app on a iOS device / simulator.

# Navigate to the iOS directory
cd ios 
pod update 

Then, from the root level of your project, run this terminal commands:

# Development 
flutter run --flavor development --target lib/main_development.dart

Run the App with the Production Flavor

To run the app with the production flavor, there are some steps required from your side to configure the project.

Each project has a kickstart checklist. After you download the codebase of the template, you'll find the checklist in the root level README.md file.

Once you have completed the steps on the checklist, you can run the application in production mode by running these commands in the terminal:

# Install the dependencies
flutter pub get

# Production
flutter run --flavor production --target lib/main_production.dart

Launch Configuration

The launch configuration is set-up in VSCode in the .vscode/launch.json, you can customize it based on your preferences.

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch development",
      "request": "launch",
      "type": "dart",
      "program": "lib/main_development.dart",
      "args": [
        "--flavor",
        "development",
        "--target",
        "lib/main_development.dart"
      ]
    },
 
    {
      "name": "Launch production",
      "request": "launch",
      "type": "dart",
      "program": "lib/main_production.dart",
      "args": ["--flavor", "production", "--target", "lib/main_production.dart"]
    }
  ]
}