Skip to content

Commit

Permalink
Merge pull request #117 from chornerman/chore/#113-update-readme-file
Browse files Browse the repository at this point in the history
[#113] Update README file
  • Loading branch information
chornerman authored Jan 19, 2023
2 parents 279dfa2 + f076618 commit 9077c71
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions README.md
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
```

0 comments on commit 9077c71

Please sign in to comment.