An open API service indexing awesome lists of open source software.

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

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
- ...