-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[#113] Update README file
- Loading branch information
Showing
1 changed file
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,48 @@ | ||
# survey | ||
# Survey | ||
|
||
Nimble Flutter internal certification | ||
|
||
## Prerequisite | ||
|
||
- Flutter 3.3 | ||
- [Recommended] [Flutter Version Management (fvm)](https://fvm.app/) | ||
|
||
## Getting Started | ||
|
||
This project is a starting point for a Flutter application. | ||
### 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 | ||
``` | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
### Run tests | ||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) | ||
#### Unit tests | ||
To run all unit tests, use the below command: | ||
``` | ||
fvm flutter test | ||
``` | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
#### 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 | ||
``` |