Example Data for FarmOS

Yes! We set up https://demo.farmos.net - but didn’t get very far with it, if I remember correctly. I still think this would be a great place to host a demo! Happy to give logins to any of you if you need one.

Perhaps the farm_demo module should provide the area geometries itself too. In addition to assets and logs.

The thought being: someone could install a fresh farmOS instance, and then install this farm_demo module to populate it with demo data. We could do exactly this on https://demo.farmos.net, and even perhaps automatically wipe and reinstall it on a daily/weekly basis.

This module would also be useful for automated testing. I can imagine having an integration test for Field Kit or the Aggregator which spins up an instance and installs this module, so that integration tests can be built to use the example content.

The Devel module from Drupal 7 comes with a Devel Generate sub-module, which can be used to generate content automatically. I’ve never used it myself, so I don’t know exactly how it works, but perhaps we should start by exploring that.

And with regard to the upcoming farmOS 2.x development, we can take a look at this module: Default Content, which uses JSON files to provide default content. But let’s cross that bridge when we come to it… We will eventually want to have two branches in the farm_demo module repository: 7.x-1.x (for farmOS 1.x based on Drupal 7 using Devel Generate) and 2.x (for farmOS 2.x based on Drupal 9 using Default Content).