Coder Social home page Coder Social logo

wendysanarwanto / react-pocs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mitrais-cdc-mobile/react-pocs

0.0 2.0 0.0 26.63 MB

A collection of POCs, Samples code, created by PT. Mitrais CDC Mobile's Software Engineers (www.mitrais.com)

License: GNU General Public License v3.0

Python 0.82% Java 1.06% JavaScript 8.23% Objective-C 85.70% Ruby 0.03% DTrace 0.04% C 3.18% Shell 0.93%

react-pocs's Introduction

react-pocs

A collection of POCs, Samples code, created by PT. Mitrais CDC Mobile's Software Engineers (www.mitrais.com)

###HOW TO - Get the samples into your local machine & setup your machine before running the samples.

  1. Ensure that you have setup nodejs & git client in your machine.
  2. Ensure that you have setup react-native-cli in your machine. If not run this command to install it sudo npm install -g react-native-cli.
  3. Open a terminal window and run this command git clone https://github.com/mitrais-cdc-mobile/react-pocs.git to pull whole POC project files into your machine.
  4. Change directory to the POC project folder you want to run.
  5. Run this command to install react-native library in the POC Project npm install react-native@^<LATESTVERSIONOFRN> where can be replaced with version you could look in this following link: https://facebook.github.io/react-native/versions.html example: if the latest version of RN is 0.24.1 then the npm command should be npm install react-native@^0.24.1
  6. Follow the steps in next sections based on mobile platform you intend to run the sample to.

HOW TO - Run the samples on Android

  1. Ensure that you have installed android SDK in your machine and these correct components have been installed:
    • Tools: Android SDK Tools, Android SDK Platform-tools, Android SDK Build-tools (All versions)
    • API 23, 22, 21, 20, 19: SDK Platofrm
    • Extras: Android Support Repository, Android Support Library, Google Play Services, Intel x86 HAXM Installer.
  2. Ensure that you have setup ANDROID_HOME environment variable which points to correct android sdk's path.
  3. Back to your POC project in terminal window, change directory to ./android subfolder.
  4. Run this command to change the gradlew file become executable: chmod 755.
  5. Run this command to install required dependencies by the android app: gradlew InstallDebug. The process will take a while to finish.
  6. Change directory to the POC Project's root directory then run npm start
  7. Open a new terminal which still point to the POC Project's root directory then run react-native run-android command.

HOW TO - RUn the samples on iOS

  1. Run this command to clean up the contents of ios build directory: rm -rf ios/build/**
  2. Run npm start command. This will run react native's packager server.
  3. Open a new terminal which still point to the POC Project's root directory then run react-native run-ios command.

react-pocs's People

Contributors

zulfikar313 avatar wendysanarwanto avatar irnafitriani avatar kadekparwanta avatar raisarijasa avatar

Watchers

James Cloos 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.