Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add steps, How to run and deploy the project #531

Open
hashirshoaeb opened this issue Feb 19, 2024 · 0 comments
Open

Add steps, How to run and deploy the project #531

hashirshoaeb opened this issue Feb 19, 2024 · 0 comments
Labels
beginner documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@hashirshoaeb
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Readme should have steps on how to run the project locally on machine. Preferably, also how to deploy it.

Describe the solution you'd like

Run on staging debug:

  • flutter run --dart-define=flavor=qa

Run on production:

  • flutter run --dart-define-from-file=.env.prod.json

Deploy to iOS:

  • flutter build ipa --release --dart-define-from-file=.env.prod.json

Deploy to Android:

  • flutter build appbundle --release --dart-define-from-file=.env.prod.json

where .env.prod.json is the file containing the production environment variables.

{
  "flavor": "prod",
  "apiKey": "<FIREBASE_API_KEY>",
  "appIdAndroid": "<FIREBASE_APP_ID>",
  "appIdIos": "<FIREBASE_APP_ID>",
  "messagingSenderId": "<FIREBASE_MESSAGING_SENDER_ID>",
  "projectId": "<FIREBASE_PROJECT_ID>",
  "storageBucket": "<FIREBASE_STORAGE_BUCKET>",
  "iosBundleId": "<IOS_BUNDLE_ID>",
}
@hashirshoaeb hashirshoaeb added documentation Improvements or additions to documentation good first issue Good for newcomers beginner labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant