Everybody has an opinion. MuchVote makes it visible and shareable in a fun way.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
ios
muchVote
resources
.editorconfig
.eslintrc
.flowconfig
.gitattributes
.gitignore
.watchmanconfig
README.md
index.android.js
index.ios.js
package.json

README.md

MuchVote, SuchRate by Donderlab

Related repositories:

Requirements

  • node v4.2 or higher
  • npm v3

Installation

npm install

Installation on Mac

On Mac you will need to install react-native globally

npm install react-native-cli -g

Android

For android you can follow the react-native documentation on Android Setup.

iOS

Open ios/MuchVote.xcodeproj and hit run in Xcode

Installation on Linux

On linux you can run the android emulator to run the application, but you won't be able to emulate the iOS device.

Install Android SDK

You will need java, run this comands to install it.

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

Download the SDK

Extract the downdload sdk, change the /path/to/downloads/android-sdk.tgz to the sdk file downloaded on the command and run it

tar -xvzf /path/to/downloads/android-sdk.tgz -C /usr/local/opt/android-sdk

Define the ANDROID_HOME enviroment variable and add the tools and platform-tools folders in the sdk to PATH. Add this to your ~/.bashrc, ~/.bash_profile or whatever your shell uses:

export ANDROID_HOME="/usr/local/opt/android-sdk"

export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"

Start the Android SDK Manager: in a new shell window and run the command:

android

Make sure you check to be installed:

  • Android SDK Build-tools version 23.0.1 (Not 23.0.2)
  • Android 6.0 (API 23)
  • Android Support Repository

Click "Install Packages"

Create an Android Virtual Device

npm run avd:create

Start the Android Virtual Device emulator

npm run avd:start

If the default window scale of 0.25 is too big or small you can change it by running instead:

SCALE=0.3 npm run avd:start

Install the app on the device

npm run android

Expect an error to pop-up on your emulated device, you will need the react packager to feed the application assets

Run the React packager

npm run start

Debugging

To access console and the output of console.log you can use the debug in chrome from the developer menu, more information here

Linting

npm run lint -s