Giter Club home page Giter Club logo

jumbosmash's Introduction

JumboSmash

Build Status

This is the repository for the 2017-2018 JumboSmash React Native App. If you haven't dealt with React Native before, you should walk through the tutorial (React knowledge is not a prerequisite).

Other important things to check out:

Initial Setup

Install tools

brew install node
brew install watchman
npm install -g react-native-cli
npm install -g yarn

Clone this repository.

git clone [email protected]:zachkirsch/JumboSmash.git
cd JumboSmash
yarn install

Setup for iOS

  • Download Xcode and Xcode command line tools. Please follow the directions on the RN docs.

Setup for Android

  • Download JDK 8 or newer.
  • Download Android Studio and relevant SDKs. Please follow the directions on the RN docs.
  • Install an Android Virtual Device. Please follow the directions on the RN docs. You'll have to create a dummy project in Android Studio to be able to see the virtual devices icon in the toolbar. You'll also probably have to install HAXM.
  • Set up environment:
    cat <<-"EOT" >> $HOME/.bash_profile
    export ANDROID_HOME=$HOME/Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/tools
    export PATH=$PATH:$ANDROID_HOME/platform-tools
    EOT
    source $HOME/.bash_profile
    

Run the App

Step 1: Ensure the server is running

See the server repo for instructions.

Step 2: Compile Typescript to JavaScript

The app needs to be compiled to JavaScript (from Typescript) to function:

yarn build

Instead, you can build and watch for changes to the Typescript, and automatically compile to JavaScript when necessary:

yarn watch

Step 3: Run the React Native packager

This step should happen automatically when you run step 4, but it doesn't hurt to start up the packager manually:

yarn start

Step 4: Run the app on the simulator

iOS

For iOS, the simulator does not have to already be running. If it's not, running this command will first launch the simulator.

yarn run ios
Android

For Android, the simulator must already be running.

yarn run android

Lint and Test

yarn test

jumbosmash's People

Contributors

zachkirsch avatar yzan424 avatar

Watchers

James Cloos avatar Chris Gregory avatar  avatar  avatar  avatar Nika avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.