The example is a mega-counter example connected to a db (mongodb) on the server, so the data is persistent.
I have not used a meteor-build-plugin to compile elm, because it has not worked out for me. Instead I’m using the
elm makecommand in combination with
inotifywaitto compile elm to js and then include the output via a meteor package to stop meteor from compiling the elm-output again.
If you want to run the example on your locale machine, you have to install meteor and elm, clone the repo and then run
meteor run watchelmand in another terminal
The data is updated as you click on the numbers, so everyone sees the same counters changing live. You can open another browser window to watch the changes you are making.
If this has sparked you interest, let me know if I should post another more comprehensive example with authentication, validation, user permissions, rate limiting aso. Maybe the realworld example.
Feedback is welcome!