Table of Contents
An updated version of the Moose Tracker application.
Please follow these instructions on setting up in an IOS/Android simulation.
-
Create a .env file in app and add
VITE_API_ENDPOINT -
Create a .env file in api and add
DB_NAME=""DB_USER=""DB_PASSWORD=""DB_HOST=DB_PORT= -
brew services start postgresql -
npm install -
npm run dev
-
Brew install cocoapods -
cd MooseTrackerV2/app/ios/App -
pod install -
cd ../.. -
nvm use 20&&npm run build -
npx cap sync -
npx cap open ios -
In xcode hit play icon
-
Say yes to install suggested tools
-
Select generic ios device and choose some physical device
-
Hit play button and simulator should start
For bringing into testflight 12. In xcode go to product > click archive
-
Then go to window > click organizer
-
validate then distribute (ensure you update the version code)
Tested on xcode 15.0.1
-
Download the latest android studio (last tested on Android Studio Hedgehog | 2023.1.1 Patch 2)
-
Run android studio and if needed, set the path of the SDK (can be downloaded and linked in preferences -> Languages & Frameworks -> Android SDK )
-
cd MooseTrackerV2/app -
npx cap sync -
npx cap open android -
Find the device manager tab on the sidebar and create a virtual device (tested on medium phone)
-
Select the device in the top dropdown and hit the play button