An open API service indexing awesome lists of open source software.

https://github.com/edsonbueno/very_good_weather

Look up the weather for any location.
https://github.com/edsonbueno/very_good_weather

Last synced: 2 months ago
JSON representation

Look up the weather for any location.

Awesome Lists containing this project

README

        

# Very Good Weather

[![Very Good Ventures][logo]][very_good_ventures_link]

![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]

Look up the weather for any location using data from the [MetaWeather API][meta_weather_api_link].

---

## Powered By ๐Ÿงฐ

- [Very Good CLI][very_good_cli_link]
- [Bloc][bloc_link]
- [Mocktail][mocktail_link]
- [Very Good Analysis][very_good_analysis_link]

---

## Getting Started ๐Ÿš€

This project contains 3 flavors:

- development
- staging
- production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

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

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

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

_\*Very Good Weather works on iOS and Android._

---

## Running Tests ๐Ÿงช

To run all unit and widget tests use the following command:

```sh
$ flutter test --coverage --test-randomize-ordering-seed random
```

To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov).

```sh
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html
```

[coverage_badge]: coverage_badge.svg
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[logo]: https://raw.githubusercontent.com/VeryGoodOpenSource/very_good_analysis/main/assets/vgv_logo.png
[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg
[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis
[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli
[bloc_link]: https://bloclibrary.dev/
[very_good_ventures_link]: https://verygood.ventures/?utm_source=github&utm_medium=banner&utm_campaign=core
[mocktail_link]: https://pub.dev/packages/mocktail
[meta_weather_api_link]: http://metaweather.com/api