VisualPT Mobile App
Warning
Setting up this dev environment can be a tricky process, as you will need to install various systems to run a debuggable iOS application on your machine. Any sticky errors that show up during this process should be documented and added to a New Discussion to accelerate future onboarding experiences, thank you.
Prerequisites:
Installation
Clone this repository, open the terminal, and cd to the cloned directory, then:
- Get all the Flutter/Dart dependencies
flutter pub get
- Get all the iOS platform-specific dependencies from inside the ios folder (remember to
cdout)
cd ios && pod install && cd ..
Configuration
Before running the application, you need to set up your configuration files:
-
Environment Variables: Copy
.env.exampleto.envand fill in your API keys:cp .env.example .envThen edit
.envwith your KinesteX API key. -
AWS Amplify Configuration: You have two options:
Option A - Using Amplify CLI (Recommended for new deployments):
npx ampx sandbox --outputs-format dart --outputs-out-dir libThis will create
amplify_outputs.jsonandlib/amplify_outputs.dartwith your AWS resources.Option B - Manual configuration (For existing deployments): Copy
amplify_outputs.example.jsontoamplify_outputs.jsonand fill in your AWS resource IDs:cp amplify_outputs.example.json amplify_outputs.jsonThen copy
lib/amplify_outputs.dart.exampletolib/amplify_outputs.dartand fill in the same values:cp lib/amplify_outputs.dart.example lib/amplify_outputs.dart
Important: Never commit
.env,amplify_outputs.json, orlib/amplify_outputs.dartto version control as they contain sensitive credentials.
Build & Run
- Create the build artifact for the iOS platform
flutter build ios
- Run the application in debug mode (ensure your device is connected)
flutter run
VisualPT should be developed on a real device at all times, the XCode Simulator should not be used as it cannot access an on-device camera.