All Projects → cloudant-labs → Location Tracker Nodejs

cloudant-labs / Location Tracker Nodejs

Licence: apache-2.0
Demo web application which records a device's location and saves this information to IBM Cloudant

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Location Tracker Nodejs

Weui
A UI library by WeChat official design team, includes the most useful widgets/modules in mobile web applications.
Stars: ✭ 26,030 (+66643.59%)
Mutual labels:  mobile-web
React Native Geolocation Service
React native geolocation service for iOS and android
Stars: ✭ 934 (+2294.87%)
Mutual labels:  geolocation
Pelias Android Sdk
Android sdk for pelias
Stars: ✭ 20 (-48.72%)
Mutual labels:  geolocation
Geographer
PHP library that knows how countries and cities are called in any language
Stars: ✭ 714 (+1730.77%)
Mutual labels:  geolocation
Geomate
GeoMate is a friend in need for all things geolocation. IP to geo lookup, automatic redirects (based on country, continent, language, etc), site switcher... You name it.
Stars: ✭ 19 (-51.28%)
Mutual labels:  geolocation
Locator Tool
Tool to add {{Location}} or {{Object location}} to images on Wikimedia Commons
Stars: ✭ 11 (-71.79%)
Mutual labels:  geolocation
React Native Geolocation
Geolocation APIs for React Native
Stars: ✭ 640 (+1541.03%)
Mutual labels:  geolocation
Vue World Map
A Vue JS component for displaying dynamic data on a world map.
Stars: ✭ 33 (-15.38%)
Mutual labels:  geolocation
Geo From Ip
Get geolocation 🌐 information about an IP 📲
Stars: ✭ 24 (-38.46%)
Mutual labels:  geolocation
Nanogenmo 2015
Around the World in X Wikipedia Articles
Stars: ✭ 20 (-48.72%)
Mutual labels:  geolocation
Whatwebcando
An overview of the device integration HTML5 APIs
Stars: ✭ 756 (+1838.46%)
Mutual labels:  mobile-web
Z1p
Zip Codes Validation and Parse.
Stars: ✭ 17 (-56.41%)
Mutual labels:  geolocation
Rgeo
Geospatial data library for Ruby
Stars: ✭ 875 (+2143.59%)
Mutual labels:  geolocation
React Div 100vh
A workaround for the '100vh' issue in mobile browsers
Stars: ✭ 707 (+1712.82%)
Mutual labels:  mobile-web
Craft Coordinates
A twig filter for Craft CMS that gets the latitude and longitude from an address
Stars: ✭ 27 (-30.77%)
Mutual labels:  geolocation
Leaflet Geosearch
(Leaflet) GeoSearch / GeoCode provider
Stars: ✭ 666 (+1607.69%)
Mutual labels:  geolocation
Android
OwnTracks Android App
Stars: ✭ 840 (+2053.85%)
Mutual labels:  geolocation
Utm
Bidirectional UTM-WGS84 converter for golang 🌍 🌐
Stars: ✭ 36 (-7.69%)
Mutual labels:  geolocation
Ionic 3 Google Maps Google Places Geolocation
This repository is part of an ionic tutorial about Maps! In this tutorial we merged Google maps, Geolocation and Google Places. This ionic tutorial includes a working example you can reuse for your needs!
Stars: ✭ 32 (-17.95%)
Mutual labels:  geolocation
Snoop
Snoop — инструмент разведки на основе открытых данных (OSINT world)
Stars: ✭ 886 (+2171.79%)
Mutual labels:  geolocation

Cloudant Location Tracker

The Cloudant Location Tracker is a demo web application which records a device's location and saves this information to IBM Cloudant.

UPDATE June, 2016: We have several sample apps covering location tracking with Cloudant. Use the one that fits your coding needs best. There's a bare-bones couchapp, this one for Angular (version 1)/NodeJS developers, and the latest using Swift/iOS on the client-side with a NodeJS back-end.

Cloning

Get the project and change into the project directory:

$ git clone https://github.com/cloudant-labs/location-tracker-nodejs.git
$ cd location-tracker-nodejs

Configuring IBM Bluemix

Complete these steps first if you have not already:

  1. Install the Cloud Foundry command line interface.
  2. Follow the instructions at the above link to connect to Bluemix.
  3. Follow the instructions at the above link to log in to Bluemix.

Create a Cloudant service within Bluemix if one has not already been created:

$ cf create-service cloudantNoSQLDB Lite cloudant-location-tracker-db

Configuring Local Development

Local configuration is done through a .env file. One environment variable, VCAP_SERVICES, is needed in order to configure your local development environment. The value of the VCAP_SERVICES is a string representation of a JSON object. Here is an example .env file:

VCAP_SERVICES={"cloudantNoSQLDB": [{"name": "cloudant-location-tracker-db","label": "cloudantNoSQLDB","plan": "Shared","credentials": {"username": "your-username","password": "your-password","host": "your-host","port": 443,"url": "https://your-username:[email protected]"}}]}

Note: Services created within Bluemix are automatically added to the VCAP_SERVICES environment variable. Therefore, no configuration is needed for Bluemix.

Installing

Install the project's dependencies and initialize the database:

$ npm install

Running

  1. Run the project through Foreman:

     $ foreman start
    
  2. Authenticate by clicking the sign up link. Iif this is your first time logging in, enter your email address and a password. If not, click the "Go Sign In" link.

  3. Track locations by simply doing nothing or moving around by foot, bike or vehicle. Location data is saved in your browser in a PouchDB database.

  4. Persist the data to the cloud by clicking "Stop & Save Location Data". Everything is saved to the Cloudant database you created earlier, with your username included in each location reading.

Deploying

To deploy to Bluemix, simply:

$ cf push

Note: You may notice that Bluemix assigns a URL to your app containing a random word. This is defined in the manifest.yml file. The host key in this file contains the value cloudant-location-tracker-${random-word}. The random word is there to ensure that multiple people deploying the Location Tracker application to Bluemix do not run into naming collisions. However, this will cause a new route to be created for your application each time you deploy to Bluemix. To prevent this from happening, replace ${random-word} with a hard coded (but unique) value.

Privacy Notice

The Location Tracker sample web 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 to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling Deployment Tracking

Deployment tracking can be disabled by removing ./admin.js track && from the install script line of the scripts section within package.json.

License

Licensed under the Apache License, Version 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].