anyway/frontend
2024-09-10 10:12:53 +02:00
..
2024-09-10 10:12:53 +02:00
2024-09-10 10:12:53 +02:00
2024-08-17 13:12:46 +02:00
2024-07-30 22:49:28 +02:00
2024-08-01 17:56:06 +02:00
2024-07-30 22:49:28 +02:00
2024-07-30 22:49:28 +02:00
2024-05-16 17:08:18 +02:00
2024-05-16 17:08:18 +02:00
2024-09-06 08:26:44 +02:00

Frontend

The frontend of this project is a Flutter application designed to run on both Android and iOS devices (and possibly as a PWA). The frontend is responsible for displaying the user interface and handling user input. It communicates with the backend via a REST-api to retrieve and send data.

Getting Started

The flutter application is divided into multiple chunks of code.

  • the lib directory contains the main code of the application.
  • the android and ios directories contain platform-specific code.
  • the root directory contains configuration files and metadata.

To run the application, you need to have the Flutter SDK installed. You can find instructions on how to do this here.

Once you have the Flutter SDK installed, you can locally install the dependencies by running:

flutter pub get

Deployment (using fastlane)

The application is deployed to the Google Play Store and the Apple App Store using fastlane:

https://docs.fastlane.tools/

Fastlane is installed as a Ruby gem. Since the bundler-gemfile is scoped to a single directory, a gemfile is included in both the android and ios directories. Once installed, the usage is

cd frontend/android # or ios
bundle install
bundle exec fastlane <lane>

This is reused in the CI/CD pipeline to automate the deployment process.