Giter VIP home page Giter VIP logo

dashdb_mobile's Introduction

IBM Bluemix dashDB + Ionic Mobile App Sample

This sample mobile app leverages IBM's Bluemix dashDB REST API. The sample code contains an example of how to issue SQL queries to dashDB and retrieve data to display. It also executes R Scripts and retrieves the graph images generated by the R scripts.

Let's set it up!

(Instructions written for mac users)

  • Download the latest version of NodeJS at https://nodejs.org/en/

  • Once you have installed NodeJS and NPM successfully, install the ionic npm by issuing the following command in your terminal: sudo npm install -g ionic

  • cd/navigate to where you cloned this git repo and cd to the dmobile directory: /dashdb_mobile/dmobile

  • run ionic platform ios android

  • if you would like to use Google Chrome Browser as an emulator run ionic serve and open Chrome to this URL: http://localhost:8100/. Use Chrome's Developer Tools and Toggle device mode.

  • You can also run the super fast ios emulator by issuing the following commands: ionic build ios followed by ionic run ios

  • You can also run this on the android emulator or device by issuing the following commands: ionic build android followed by ionic run android (if you have an android device with developer mode enabled and the necessary android SDK APIs, you can plug it into your computer and ionic will install the app in the device when running ionic run android)

Get a dashDB Instance in Bluemix!

  • Go to Bluemix.net and sign up!

  • To create a dashDB Instance, go to the Catalog. Alt Text

  • Click on dashDB Service Icon, under the category Data and Analytics.

  • Once you have created your instance. You will need the host, username and password to access your data from the mobile app. You can see your credentials by going to the DASHBOARD and clicking on your dashDB instance. On the left menu, click on Service Credentials.

Connect the mobile app to your dashDB instance

Now that you have your dashDB credentials, click on the Login button in the mobile app menu and enter your credentials.

dashdb_mobile's People

Watchers

StevenCoding 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.