add sample module
This commit is contained in:
parent
ecb7ab553e
commit
44a785ee9d
3 changed files with 39 additions and 0 deletions
16
sample/readme.md
Normal file
16
sample/readme.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Application modules
|
||||
|
||||
This allows for the loading of server-side modules which can, in turn,
|
||||
inject browser modules into applications like Kiri:Moto.
|
||||
|
||||
To enable the sample module:
|
||||
|
||||
* create a `mod` directory at the root of grid-apps
|
||||
* copy the sample directory into the mod directory: `mod/sample`
|
||||
* (re)start `gs-app-server`
|
||||
* you will see log lines at start-up similar to this
|
||||
|
||||
```
|
||||
220128.120432 '[head]' { module: './mod/sample/init.js' }
|
||||
220128.120432 '[head]' '--- sample server-side module loaded ---'
|
||||
```
|
||||
Loading…
Reference in a new issue