Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 3.38 KB

README.md

File metadata and controls

66 lines (36 loc) · 3.38 KB

Overview: crime-demos

Crime demos is collection of apps that demonstrate some of the things you can do with the open crime data we publish in a world-readable Cloudant database. There's also a documented public API for accessing the data programmatically.

Available apps

Crime Browser: A simple point data browsing app that uses an adjustable circle as a "window" on crime data

Crime Visualization: A more complex app that queries crimes based on a polygon you draw, providing summary statistics for those crimes selected by the polygon. It also allows a user to adjust the query's time of day.

How it works

The applications use this Bluemix service:

  • a Node.js runtime

Running the apps on Bluemix

The fastest way to deploy this application to Bluemix is to click the Deploy to Bluemix button below.

Deploy to Bluemix

Don't have a Bluemix account? If you haven't already, you'll be prompted to sign up for a Bluemix account when you click the button. Sign up, verify your email address, then return here and click the the Deploy to Bluemix button again. Your new credentials let you deploy to the platform and also to code online with Bluemix and Git. If you have questions about working in Bluemix, find answers in the Bluemix Docs.

Running the app locally

Clone this repository then run npm install to add the Node.js libraries required to run the app.

Then run: $ node app.js

Privacy Notice

The Crime demos web application includes code to track deployments to 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.

Disabling Deployment Tracking

For manual deploys, deployment tracking can be disabled by removing require("cf-deployment-tracker-client").track(); from the end of the app.js main server file.

License

Copyright 2016 IBM Cloud Data Services

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

These applications are for demonstration purposes only and are in no way offering advice for safety purposes.