Aam-Digital / ndb-core

Easy-to-use case management web app for NGOs anywhere in the world.
http://www.aam-digital.com
GNU General Public License v3.0
55 stars 18 forks source link

Demo setup/generators supporting different setup scenarios #1893

Open sleidig opened 1 year ago

sleidig commented 1 year ago

In practice, we are running multiple demo sites for different use cases (e.g. education, health, vocational training). However, the code only supports a single demo setup (config-fix.ts) and the demo data generator services have hard-coded parameters on what to generate. As a workaround, other demo systems are actually run in "synced" mode and cannot auto-generate new data every time a user visits the site.

Requirements / Suggested implementation:

Sample demo_entities.json:

{
"docs": [
    {
      "_id": "Config:CONFIG_ENTITY",
      "otherField": "xyz"
    },
    { /* other doc to be saved using `_bulk_docs` */ }
]
}
sleidig commented 7 months ago

This is actually a more important problem now, because keycloak login (which is required now) doesn't allow to use the app in an iframe (which we are doing to display the username + password to website visitors).

Current demos are: