skywire-visor-monitor
Skywire Visor Monitor
This program store the number of available Skywire visors in world over the time.
Installation
You have to install crystal for your operating system: https://crystal-lang.org/docs/installation/
Set environment variables
export APP_DB_HOST=localhost
export APP_DB_NAME=skywirevisor_development
export APP_DB_PASSWORD=skywirevisor_development
export APP_DB_PORT=28015
export APP_DB_TABLE_NAME=visors_metrics
export APP_DB_USER=skywirevisor_development
export APP_TICK_TIME_SECOND=10
export APP_TRACKER_PATH="/visors"
export APP_TRACKER_URI="https://uptime-tracker.skywire.skycoin.com"
Usage
shards build --production
Development
Launch RethinkDB administration tool
First of all, you need a RethinkDB datastore: https://rethinkdb.com/docs/install/.
You can deploy an instance on cloud provider like AWS or Compose: https://rethinkdb.com/docs/paas/
-
With docker
replace rethinkdb by your docker instance name
xdg-open "http://$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' rethinkdb):8080"
-
With a local RethinkDB instance
xdg-open "http://localhost:8080"
-
With a remote instance of RethinkDB
xdg-open "https://my.domain.com:8080"
Configure the database
r.db('rethinkdb').table('users').insert({id: 'skywirevisor_development', password: 'skywirevisor_development'});
r.dbCreate('skywirevisor_development');
r.db('skywirevisor_development').grant('skywirevisor_development', {read: true, write: true, config: true});
Contributing
- Fork it (https://github.com/fenicks/skywire-visor-monitor/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- fenicks Christian Kakesa - creator, maintainer
Repository
skywire-visor-monitor
Owner
Statistic
- 0
- 0
- 0
- 0
- 3
- over 4 years ago
- June 6, 2020
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 11:49:29 GMT
Languages