Skip to content

A fitness planner where users can add and configure their own training plans.

License

Notifications You must be signed in to change notification settings

sdresselmann/Herculade

Repository files navigation

build-app-release code-analysis flutter-tests style: lint

Herculade

This app is a fitness planner where users can add and configure their own training plans. These training plans can be selected and saved via a calendar for corresponding training days. It works on Windows, Mac and Linux.

Remake of the "FitHub" project made for the mobile application module:

https://github.com/sdresselmann/FitHub

This project extends already existing functionality and makes it usable for multiple Platforms (Android, IOS, Web).

Flutter

Start

flutter run -d chrome

This builds and runs the app in your webbrowser. For using the app on Android and iOS, refer to the Build for Release Section.

Tests

Generate Mockito Mocks:

dart run build_runner build

Unit and Widget Tests

flutter test

Integration and e2e Tests

flutter test -d linux integration_test/regression.dart

Code analyzing and linting

flutter analyze
dart analyze

Code formating

dart format lib

Generate Docs

dart doc

Build for release

1. Download all dependencies

flutter pub get

2. Build APK

flutter build apk

3. Build App Bundle

flutter build appbundle

Commit Hooks

For convenience this project uses Husky Pre-Commit hooks for analyzing and formatting the code.

Add husky to your dev dependencies in pubspec.yaml

dart pub add --dev husky

Enable Git Hooks

dart run husky install

By default, this projects provides hooks for the following commands:

flutter analyze
dart analyze
flutter format lib

To create your own Hooks or in case this documentation is outdated check: https://pub.dev/packages/husky