This part of the project builds a real-time website using the Event Kit data. For an overview of the whole project head to the main readme.
Requirements: Node.js
To run the app that generates the Event Kit website enter the following command (or edit the website.sh script in the web folder and run it).
node website-app.js \
--host localhost \
--port 9080 \
--username eventblank-admin@host \
--password password123 \
--tokenpath ../../realm/access.base64 \
--admintokenpath ../../admin_token.base64 \
--templatepath ../template/Bell \
--outputpath ../www
This command will run the website-app.js app. Let's look at the parameters :
host- your server hostport- the port ROS is running onusername- the eventblank read-write user namepassword- the eventblank read-write user passwordtokenpath- the path to a file containing your feature tokenadmintokenpath- the path to a file containing your admin tokentemplatepath- the path to the website template folderoutputpath- where to save the generated website
While the app is running it will monitor the Event Kit file on the server and upon any changes will re-generate the Event Kit website in the given output directory.
In case the Node app is running on a server, which serves the web site, your users will see always the up to date content.
In case you're generating the website locally, you can re-upload the web page at your convenience.
If you aren't interested in real-time changes you can stop the app as soon as it finishes running - it re-generates the web site when it's being started.
Distributed under the Apache 2.0 license. See LICENSE for more information.
The names and logos for Realm are trademarks of Realm Inc.
We ❤️ open source software!
See our other open source projects, check out the Realm Academy, or say hi on twitter (@realm).


