- Simple.
- Based on socket.io and Yandex maps.
- No database, no jquery. Js script minified and gzipped is only 16 Kb.
- Server accepts json messages through tcp like
{id:1, lat:10, lng:20}
. For devices to send these messages you can use translator server.
- Clone repository to your server.
cp browser/config.example.js browser/config.js
; paste your Yandex.Maps API key there and adjustserverUrl
andbrowserPort
. For local development, set them tohttp://localhost
and8020
.cp server/config.example.json server/config.json
; don't edit it.docker-compose build && docker-compose up
.- Open http://localhost:8020 in your browser and rejoice.
{id:1,lat:20,lng:30} {id:1,lat:20,lng:30}
Translator server ---------------------> GPS web-tracker server ---------------------> Browser
JSON over TCP socket.io
Cause each tracker device has its unique protocol to send gps information, there should be a translator server to decode messages from devices and send it in JSON format. The project is hosted here: http://github.com/vinograd19/gps-devices/