Code Monkey home page Code Monkey logo

app-insights-discovery's Introduction

App Insights

App Insights is a mobile app that runs on top of IBM Bluemix. The app uses Watson Discovery service to provide analysis of reviews extracted from the top ten free apps in the App Store.

Preview

Features

  • Sentiment Over Time: Sentiment based on specific target phrases the Discovery service finds in each review.
  • Keywords: Important topics pulled from each review.
  • Opportunities: Reviews returned by querying the Discovery service. Each review represents an opportunity for an app developer to discover which features to implement, change or delete.

Building App Insights

Prerequisites

Setup Backend Configuration

Python is used to extract, parse and upload reviews grabbed from the App Store's RSS feeds. It then cleans the data and uploads app details into Cloudant, and app reviews into the Discovery service.

  1. Install the following third-party dependencies the Python scripts require:
pip install --upgrade watson-developer-cloud
pip install cloudant
pip install -U python-dotenv
pip install beautifulsoup4
pip install lxml
pip install cssselect
  1. Insert your Discovery and Cloudant credentials into the Scripts/.env file.

Name your Discovery collection and Cloudant database anything you prefer. If the Discovery collection or Cloudant database instance doesn't exist, the Python script will create them for you (assuming the credentials for each service was filled in correctly).

  1. Run these two scripts in this order to load Cloudant and Discovery with information:
python Scripts/ingest_reviews.py
python Scripts/extract_upload_app_details.py

The ingest_reviews.py script crawls reviews from the top 10 free apps by extracting reviews from the App Store's RSS feeds, then ingests the reviews into the Discovery service to enrich.

The extract_upload_app_details.py script extracts general app detail information. This includes app name, description, URL, number of reviews, rating, etc. This information is then stored inside Cloudant to be called by the app.

Setup Frontend Configuration

  1. Install third-party dependencies using Carthage. The first time you run this command can take up to 20 minutes.
cd app-insights-iOS
cd carthage update --platform iOS

This command pulls all dependencies from Carthage. We currently use the Graphs, Watson Developer Cloud's Swift SDK and SwiftyJSON libraries.

  1. Insert your Discovery and Cloudant username and passwords into the app-insights-iOS/app-insights/Credentials.swift. Insert the same Discovery collection name and Cloudant database name you created when running the Python scripts into the Configuration file.

Running the project

Press build and run to see the app running in Xcode's iPhone simulator.

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.