Track your home server status by simple API.
Will returns state of your server.
$ curl -X GET 'host/api/v1/state'
{
"os": " Ubuntu 22.04.2 LTS",
"arch": " x86-64",
"host": "host",
"kernel": "Kernel",
"uptime": "up 5 days, 1 hour, 39 minutes"
}
You need Ruby and bundle for start.
- Clone
serverio-rb
to your server:
$ git clone https://github.com/serverio-rb/serverio-rb
- From
serverio-rb
directory runbundle
to install dependencies:
$ bundle install
- Run
serverio-rb
:
$ rackup --host 0.0.0.0 --port 9292
- Go to serverio_rb_flutter for client or use
curl
(or alternatives) to track your server status.
Install dependencies:
$ bundle install
After that - make your features.
Read Commit Convention. Make sure your build is green before you contribute your pull request. Then:
$ bundle exec rake
If you don't see any error messages, submit your pull request.
- @fartem as Artem Fomchenkov