node.js application to receive and display web-pings from nodes in the Réseau Libre mesh network when they boot for the first time.
$ sudo su - postgres
$ psql
postgres=# CREATE DATABASE rlping OWNER=your_login_name;
postgres=# \q
$ exit
$ psql -d rlping
rlping=# CREATE TABLE pings (id SERIAL, ping_date timestamp with time zone, wlanmac varchar(100), ipv4 varchar(20), ipv6 varchar(50));
rlping=# \q
npm install
DATABASE_URL=postgres://user:pass@localhost/rlping node app
Or push to Heroku:
heroku create
heroku addons:add heroku-postgresql:dev
git push heroku master
heroku open
Access the 'ping' URL:
http://localhost:5000/ping?wlanmac=00:00:00:00:00:00&ipv4=0.0.0.0/24&ipv6=fd64:1234:5678::1/60
Then a new entry should appear in the list at:
http://localhost:5000/