https://github.com/bobey/storjmap
Visualize Storj.io online nodes with Google Maps
https://github.com/bobey/storjmap
googlemaps googlemaps-api storj storj-network
Last synced: 9 months ago
JSON representation
Visualize Storj.io online nodes with Google Maps
- Host: GitHub
- URL: https://github.com/bobey/storjmap
- Owner: bobey
- Created: 2017-04-13T18:56:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T19:34:24.000Z (over 8 years ago)
- Last Synced: 2025-02-12T13:56:29.131Z (11 months ago)
- Topics: googlemaps, googlemaps-api, storj, storj-network
- Language: HTML
- Homepage: http://storjmap.overnetcity.com/
- Size: 1.51 MB
- Stars: 9
- Watchers: 6
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StorjMap
A 2 hours project using Storj.io bridge API to display online nodes on a Google Map.
## Online demo
http://storjmap.overnetcity.com

## How does it work?
The `storjmap:cache-contacts` gets all Storj nodes from Storj.io bridge API and then ask for IP address geolocation.
The result is cached on filesystem and ready to be served to the Google Maps API as clustered markers.
## Run it
Run the command `bin/console storjmap:cache-contacts` to retrieve Storj online nodes and their geolocation.
If you use Apache, a vhost as follow should do the trick:
```
ServerName storjmap.tld
DocumentRoot /path/to/storjmap/web
AllowOverride None
Order Allow,Deny
Allow from All
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api(.*)$ app.php [QSA,L]
ErrorLog /var/log/apache2/storjmap_error.log
CustomLog /var/log/apache2/storjmap_access.log combined
```
## Contribute
It would be nice to display nodes data on click or have a global panel with network statistics. If you are motivated, all
the data needed should be already there, ready to be used! Feel free to fork and enhance :-)
A few ideas:
- Use Redis or some key/value store to cache nodes data
- Retrieve marker clusters on map zoom events to improve display perfs
- Add a panel with global network stats
- Display node informations on click
- ...