bcgov / MooseTrackerV2

1 stars 0 forks source link


Logo

Moose Tracker

project_description
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started

About The Project

An updated version of the Moose Tracker application.

(back to top)

Built With

(back to top)

Getting Started

Please follow these instructions on setting up in an IOS/Android simulation.

For local builds

  1. Create a .env file in app and add VITE_API_ENDPOINT

  2. Create a .env file in api and add DB_NAME="" DB_USER="" DB_PASSWORD="" DB_HOST= DB_PORT=

  3. brew services start postgresql

  4. npm install

  5. npm run dev

For IOS builds

  1. Brew install cocoapods

  2. cd MooseTrackerV2/app/ios/App

  3. pod install

  4. cd ../..

  5. nvm use 20 && npm run build

  6. npx cap sync

  7. npx cap open ios

  8. In xcode hit play icon

  9. Say yes to install suggested tools

  10. Select generic ios device and choose some physical device

  11. Hit play button and simulator should start

For bringing into testflight

  1. In xcode go to product > click archive

  2. Then go to window > click organizer

  3. validate then distribute (ensure you update the version code)

Tested on xcode 15.0.1

For Android builds

  1. Download the latest android studio (last tested on Android Studio Hedgehog | 2023.1.1 Patch 2)

  2. Run android studio and if needed, set the path of the SDK (can be downloaded and linked in preferences -> Languages & Frameworks -> Android SDK )

  3. cd MooseTrackerV2/app

  4. npx cap sync

  5. npx cap open android

  6. Find the device manager tab on the sidebar and create a virtual device (tested on medium phone)

  7. Select the device in the top dropdown and hit the play button