Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

BitByBite-xyz/JBUM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JBUM

Project Structure

Check out this article for an overview of the jbumapp directory.

Getting Started

Running on iOS Simulator

Note: You must be on a Mac for this.

Installing required software (do these in order)

  • Homebrew

  • Yarn: run brew install yarn in terminal

  • React Native: run npm install -g create-react-native-app

  • CocoaPods: run sudo gem install cocoapods

  • Xcode install from mac app store and run (if it asks you to install command line tools select yes)

Getting it up and running

  • Download the source code for this app by pressing the green 'clone or download' button in the top right of this page

  • Navigate to the jbumapp directory by opening a terminal window and typing cd (include the space) and dragging the jbumapp folder from the folder you just downloaded (will look like this JBUM-822dd6d0db1aa7ac3f7e1e0c726cf9220bd5ecd7-2).

  • type yarn; cd ios; pod install; cd .. and press enter

  • Run react-native run-ios

  • Wait for the simulator to launch with the app (might take 4-5 minutes)

Running on iOS Device

  • Be sure your Meteor app is running: In the jbummeteor directory, type meteor
  • Get the IP address of your machine (you can run ipconfig getifaddr en1 to do so)
  • In jbumapp/app/config/settings.js change localhost to your machine's IP address
  • Plug your device into your computer (make sure it's on the same network)
  • Open the project in Xcode
  • Select your device in Xcode and press "Build and run"

For further information please reference the official docs.

Running on Android Simulator

  • Be sure your Meteor app is running: In the jbummeteor directory, type meteor
  • Get the IP address of your machine
  • In jbumapp/app/config/settings.js change localhost to your machine's IP address
  • Make sure you have an emulator configured and running.
  • From the jbumapp directory run react-native run-android

On OSX you can get your IP address by running ipconfig getifaddr en1 in a terminal window.

Running on Android Device

  • Be sure your Meteor app is running: In the jbummeteor directory, type meteor
  • Make sure USB Debugging is enabled
  • Plug your device into your computer
  • Run adb devices to make sure your device shows up
  • Run adb reverse tcp:8081 tcp:8081
  • In jbumapp/app/config/settings.js change localhost in METEOR_URL to your computer's IP address (see note in "Running on Android" section on how to get your IP Address)
  • Run react-native run-android

For further information please reference the official docs.