-
Notifications
You must be signed in to change notification settings - Fork 0
Archive Trac demo app newmod
madscatt edited this page Jun 20, 2026
·
1 revision
Legacy Trac archive page imported from
demo_app_newmod. Source: https://genapp.rocks/wiki/wiki/demo_app_newmod. Review age, links, and examples before treating as current.
Adding New Module
To add new module to the application do the following:
- edit {{{menu.json}}}
- add JSON section for a new module "New Energy":
{
"id" : "energy",
"label" : "New Energy"
}
so the resulting {{{menu.json}}} looks as follows:
# this is a project menu file
{
"menu" : [
{
"id" : "simulate",
"label" : "Simulate",
"icon" : "pngs/simulate.png",
"modules" : [
{
"id" : "penergy",
"label" : "Energy"
}
,{ <--- BEGINNING of the "energy" module section
"id" : "energy",
"label" : "New Energy"
} <--- END of the "energy" module section
]
}
]
}
- "genapp" the application
- change to the base directory ({{{[path_to]/demo}}})
- run {{{genapp}}} from command line
- clear the browser's cache
- go to {{{http://your-ip-address/demo}}}, press "Simulate" and note the difference:
