Skip to content

ltfschoen/peer.ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peer.ai

Table of Contents

Chapter 1 - About

Chapter 2 - Setup

  • Bash (Unix shell) on macOS
    • Install dependencies

      • Install Node Version Manager (NVM)
      • Install latest stable version of Node.js using NVM (includes NPM), switch to using, and check where installed
        nvm install v8.0.0; nvm use v8.0.0; nvm list; which node;
        
      • Update PATH by appending Node Package Manager (NPM) binary to end of Bash Profile config and reset shell environment
        echo 'export PATH="/usr/local/share/npm/bin:$PATH"' >> ~/.bash_profile; source ~/.bash_profile
        
      • Install Watchman
        brew install watchman; brew upgrade watchman; which watchman
        
      • Install React Native CLI globally and update package.json
        cd PeerAI; yarn add global react-native-cli; yarn add react-native
        
      • Install Yarn and NPM dependencies
        cd PeerAI; yarn install --verbose; npm install --verbose
        
    • Simulation

      • iOS

        • Install Xcode and Xcode Command Line Tools (CLT)

        • Show React Native iOS Emulation Help

          react-native run-ios --help
          
        • Check that you are in the PeerAI app root directory:

          cd PeerAI
          
        • Create/select iOS Simulator Devices within Xcode

          open ios/PeerAI.xcodeproj
          
        • List iOS Simulator Device Types

          ios-sim showdevicetypes
          
        • Run Emulator (within PeerAI root directory) in iOS Simulator.

          react-native run-ios
          

          alt tag

      • Android

        • Install Android Studio

        • Check that you are in the PeerAI app root directory:

          cd PeerAI
          
        • Install Android Target Platforms using Android SDK Manager

          android
          android --help
          
        • List Available Targets

          android list targets
          
        • Create Android Virtual Device image using a target that had a Tag (i.e. android create avd -n <name> -t <target> --abi default/x86_64). Note: Devices stored in ~/.android/avd/.android/avd/

          android create avd -n "react" -t "android-N" --abi default/x86_64
          
        • Show list of Android Virtual Devices

          android list avd
          
        • Configure Virtual Device details using Android Virtual Device (AVD) Manager

          android avd
          
        • Open and perform in Terminal Window #2

          • Boot of Android Device using configured Platform (i.e. emulator -avd <name>)
            emulator -avd "react"
            
        • List Devices

          react-native run-android --help
          adb devices
          
          • Sample output:
            $ adb devices
            List of devices attached
            emulator-5554	device
            
        • Delete previous build

          rm android/app/build/outputs/apk/app-debug.apk
          
        • Run React Native app using the Emulator you have already booted up (within PeerAI root directory)

          react-native run-android --deviceId "emulator-5554"
          

          alt tag

    • Debugging

Chapter 3 - Troubleshooting

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.8%
  • Objective-C 26.2%