https://github.com/peterhellberg/loc
SSE stream of visitor locations plotted on a map using D3.js
https://github.com/peterhellberg/loc
Last synced: 12 months ago
JSON representation
SSE stream of visitor locations plotted on a map using D3.js
- Host: GitHub
- URL: https://github.com/peterhellberg/loc
- Owner: peterhellberg
- Created: 2014-07-05T18:48:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T15:23:58.000Z (over 11 years ago)
- Last Synced: 2025-01-14T07:11:31.562Z (about 1 year ago)
- Language: Go
- Size: 246 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loc
[SSE](http://en.wikipedia.org/wiki/Server-sent_events) stream of visitor locations plotted on a map using [D3.js](http://d3js.org/).

## Requirements
- A MongoDB user with oplog access
- A `visits` collection with documents including the field `ip`
- The free GeoLite2 City database from [MaxMind](http://dev.maxmind.com/geoip/geoip2/geolite2/)
## Installation
```
go get github.com/peterhellberg/loc
```
## Environment variables
- **PORT**
- **GEOLITE2_CITY_PATH**
- **MONGOHQ_URL**