Insights Search provides a search interface for the IBM Insights for Twitter service.
-
Create a Bluemix Account
Sign up for Bluemix, or use an existing account.
-
Download and install the Cloud-foundry CLI tool
-
Clone the app to your local environment from your terminal using the following command
git clone https://github.com/IBM-Bluemix/insights-search.git
-
cd into this newly created directory
-
Edit the
manifest.yml
file and change the<application-name>
and<application-host>
frominsights-search
to something unique.applications: - services: - insights-search-twitter name: insights-search host: insights-search path: . memory: 256M
The host you use will determinate your application url initially, e.g. <application-host>.mybluemix.net
.
-
Connect to Bluemix in the command line tool and follow the prompts to log in.
$ cf api https://api.ng.bluemix.net $ cf login
-
Create the Insights for Twitter service in Bluemix.
$ cf create-service twitterinsights Free insights-search-twitter
- Push the application to Bluemix.
$ cf push
And voila! You now have your very own instance of Insights Search running on Bluemix. Navigate to the application url, e.g. <application-host>.mybluemix.net
and start querying Twitter.
To troubleshoot your Bluemix app the main useful source of information is the logs. To see them, run:
$ cf logs <application-name> --recent
- node.js
- express
- angularJS MIT
- angular-numeraljs MIT
- angular-clipboard MIT
- angular-socialshare MIT
- angular-ui-notification MIT
- JSURL MIT
- livestamp.js MIT
- google-code-prettify
- Twitter Bootstrap MIT
- bootstrap-datepicker Apache 2.0
- jQuery-QueryBuilder MIT
- momentjs MIT
- Twitter oEmbed
This application includes code to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:
- Application Name (application_name)
- Space ID (space_id)
- Application Version (application_version)
- Application URIs (application_uris)
This data is collected from the VCAP_APPLICATION environment variable in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.
Deployment tracking can be disabled by removing require("cf-deployment-tracker-client").track();
from the beginning of the app.js
file.
Insights Search is a sample application created for the purpose of demonstrating the use of the Insights for Twitter service application. The program is provided as-is with no warranties of any kind, express or implied.