Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 997 Bytes

README.md

File metadata and controls

52 lines (45 loc) · 997 Bytes

Karpo frontend

Getting Started

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/kaienlin/karpo.git
    cd frontend
  2. Install NPM packages
    yarn
  3. Create a .env file with the following entries
    BACKEND_API_URL=...
    GOOGLE_MAPS_API_KEY=...
    MAPS_SDK_IOS_API_KEY=...
    MAPS_SDK_ANDROID_API_KEY=...

Run with Expo Go

yarn start
  • For Android emulator user:
    • If your backend is running on a local machine at http://localhost:<port_number>, execute the following command in your terminal:
      adb reverse tcp:<port_number> tcp:<port_number>
      This will expose the corresponding port on your Android device to that on your computer.

Build

  • Build on local machine
    yarn build-ios
    yarn build-android
  • Build on EAS
    yarn build-all

Run e2e test

yarn e2e:run