-
Notifications
You must be signed in to change notification settings - Fork 0
Run
Maël Chiotti edited this page Nov 19, 2023
·
6 revisions
Instructions on how to run the frontend of CPM.
- Flutter SDK (stable):
- Download the ZIP file for your OS
- Decompress the files somewhere
- Add the path to
flutter/binto yourPathenvironment variable
- Visual Studio Build Tools:
- Download the Visual Studio installer
- Install the "Desktop development with C++" workload
- Android Studio:
- Download and install it
- Use the already installed Microsoft Edge, Google Chrome or any other Chromium navigator
-
Signing configuration to build for release:
- Place your
.jkskeystore file in theandroiddirectory (example:android/my_keystore.jks) - Place your
key.propertiesfile in theandroiddirectory with the following values:
storePassword=<password> keyPassword=<password> keyAlias=<alias> storeFile=../my_keystore.jks
- Place your
- Rename the config file
config.yaml.sample, situated inassets/config, toconfig.yaml - Replace the URL and the anon key to your Supabase instance
- Get the dependencies:
flutter pub get
- Run the app:
flutter run
- 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