covid app
covid-19 application made with flutter, following test driven development (tdd) and clean architecture along with internationalization with json and ci/cd workflow.
features:
ths project has several features:
- fetch covid cases and latest news related to covid-19 from apis.
- cache data in local storage, use when no internet connection is available.
- error handling for server failure and cache failure.
- flutter bloc state management.
- test driven development (tdd).
- follow resocoder’s clean architecture. for details, click here.
- internationalization with json for two locale values –
en-us
andhi-in
. - ci/cd workflow with github actions and secrets.
preview:
apis used
- covid case data are taken from here.
- news are fetched from newsapi.org.
running the project
to run this project, some configuration steps are required.
- create your own api key from newsapi.org.
- create a new file named
api_key.dart
inside thelib
folder. - paste the following line with your api key.
const string news_api_key = 'your_api_key';
learn test driven development and clean architecture
additional documentations that might help
- internationalizing flutter apps: https://flutter.dev/docs/development/accessibility-and-localization/internationalization
- ci & cd with flutter: https://flutter.dev/docs/deployment/cd
- flutter github actions – automate your workflow: https://github.com/marketplace/actions/flutter-action
todo
- [ ] web version
- [ ] full test coverage including integration test
- [ ] improve documentation
Comments are closed.