GithubHelp home page GithubHelp logo

marceluphd / android-react_native-favoriot-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lintangwisesa/android-react_native-favoriot-api

0.0 1.0 0.0 1004 KB

A simple Android React Native app using Favoriot API

Home Page: https://www.youtube.com/watch?v=vH764RTC_Vc

JavaScript 47.42% Python 14.26% Java 9.89% Objective-C 28.44%

android-react_native-favoriot-api's Introduction

simplinnovation

Android React Native & Favoriot API

Video Lintang

  1. Make sure Node.js is installed on your PC, then simply download or clone this repo and install all dependencies:

    $ git clone https://github.com/LintangWisesa/Android-React_Native-Favoriot-API.git
    
    $ cd Android-React_Native-Favoriot-API
    
    $ npm install

  1. Open your code editor (I'm using Visual Studio Code), insert your Favoriot API key and Favoriot device developer ID to the App.js file!

    • API key goes to request headers:

      var headers = {
      headers: {
          'Content-Type': 'application/json',
          'apikey': 'your_API_key'
          }
      }
    • Device developer ID goes to request headers:

      var dataBody = {
          device_developer_id: 'your_device_developer_ID',
          data: {
              Temperature: this.state.input1,
              Humidity: this.state.input2,
              Potentio: this.state.input3
          }
      }

  1. Open your Android emulator or AVD (Android Virtual Device), in this case I'm using Genymotion cause it's lighter than Android Studio's AVD. Then just run the project!

    $ react-native run-android

    The app will be run automatically on your AVD. Try to POST some data & GET the data back from Favoriot!

    android

    Enjoy your code~ ๐Ÿ˜

Lintang Wisesa ๐Ÿ’Œ [email protected]

Facebook | Twitter | Google+ | Youtube | :octocat: GitHub | Hackster

android-react_native-favoriot-api's People

Contributors

lintangwisesa avatar

Watchers

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