Skip to content
Maël Chiotti edited this page Nov 19, 2023 · 6 revisions

Instructions on how to run the frontend of CPM.

Flutter

  • Flutter SDK (stable):
    • Download the ZIP file for your OS
    • Decompress the files somewhere
    • Add the path to flutter/bin to your Path environment variable

Platform build tools

Windows

Android

  • Android Studio:

Web

  • Use the already installed Microsoft Edge, Google Chrome or any other Chromium navigator

Configure

Android

  • Signing configuration to build for release:

    • Place your .jks keystore file in the android directory (example: android/my_keystore.jks)
    • Place your key.properties file in the android directory with the following values:
    storePassword=<password>
    keyPassword=<password>
    keyAlias=<alias>
    storeFile=../my_keystore.jks

Run

  • Rename the config file config.yaml.sample, situated in assets/config, to config.yaml
  • Replace the URL and the anon key to your Supabase instance
  • Get the dependencies: flutter pub get

On a device

  • Run the app: flutter run

As a server

  • Check your IP address with ipconfig
  • Run the server: flutter run -d web-server --web-port 8080 --web-hostname <ip>
  • Open the app in a browser on any device in the same network at the address <ip>:8080

Clone this wiki locally