Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.87 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.87 KB

Survey

Nimble Flutter internal certification

Prerequisite

Getting Started

Set up the project

To set up this project locally, follow the steps below:

  • Create .env files inside the project's root directory and add the required environment variables into them. Take a look at the .env.sample to see the list of all required environment variables
    • To set up the staging environment, create .env.staging
    • To set up the production environment, create .env
  • Generate Flutter files using the below command:
fvm flutter packages pub run build_runner build --delete-conflicting-outputs

Run the app

Staging

To run the staging flavor app, use the below command:

fvm flutter run --flavor staging

Production

To run the production flavor app, use the below command:

fvm flutter run --flavor production

Run tests

Unit tests

To run all unit tests, use the below command:

fvm flutter test

Integration tests

To run integration tests with an emulator, use the below command:

fvm flutter drive --driver=integration_test_driver/integration_test_driver.dart --flavor staging --target=integration_test/{test_file}.dart

Screenshots

  • Onboarding

  • Home

  • Taking survey