Skip to content

Flutter Water Tracker App With Firebase Services (Auth, Firestore, Cloud Messaging, Crashlytics, Remote Config)

Notifications You must be signed in to change notification settings

extrawest/flutter_firebase_water_tracker

Repository files navigation

Water tracker app 🚰

Codemagic build status Ask Me Anything ! GitHub license GitHub release View DEMO

Project info

  • This project is a water tracker app connected to Firebase.
  • The app is fully supported on iOS and Android.
  • The app is built using the Firebase authentication and Firestore database.
  • The app uses others Firebase Services such as Cloud Messaging, Crashlytics, Remote Config, etc.
  • The covered with Unit Tests, Widget Tests and Integration Tests.

Demo

water_tracker.mp4

How to run

  • Clone the project
$ git clone https://github.com/extrawest/flutter_firebase_water_tracker.git
  • Install dependencies
$ flutter pub get
  • Configure Firebase
 $ flutterfire configure
  • Run the app
$ flutter run
  • Optional but highly recommended to setup pre-push hook
    • Initialize git repository if you haven't already
        $ git init
    
    • add sh script to git hooks
        $ ln -s pre-push.sh .git/hooks/pre-push
    

How to test

  • To run all test
$ flutter test
  • To generate codecovarege:
    • Run test with additional flag
    $ flutter test --coverage
    
    this results into coverage/lcov.info file creation
    • Generate html file using previosly generated lcov file
    $ genhtml coverage/lcov.info -o coverage/html
    
    • Use coverage/html/index html to view current project's codecoverage
  • In order to run shader warm ups use:
$ flutter drive --profile --cache-sksl --write-sksl-on-exit sksl_shader01.json --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart

Maintained by Lesha Melnychenko

Extrawest.com, 2023