This is an example implementation of a location-based service to demonstrate the power of Cassandra, node.js and Websockets. It provides three basic services/pages:
- Check-in from the user's actual position (determined via the HTML5 Geolocation API)
- Show the current checkin-ins live
- Check-in to a location nearby the user's position
- node.js: General Platform
- Cassandra: NoSQL database
- Express: Middleware Framework
- Socket.io: Messaging library
- Leaflet: JavaScript mapping library
- HTML5 Geolocation API: Locate user's position
You will need node.js and Cassandra to run the demo server.
You can install the demo server via:
npm install
This will download not only the package's dependencies but also the UlmApi example data from daten.ulmapi.de and imports it into a fresh MongoDB collection called haltestellen
(german for bus stops) inside the geospatial-demo
database. A geospatial index for the geometry.features.geometry.coordinates
field is automatically created.
Simple start the server via:
npm start
/checkin-simple.html
- Check-in at user's position/checkin.html
- Check-in at a bus stop in the city of Ulm, Germany/show.html
- Show check-ins live