1.0.0 • Published 7 years ago
system-admin-server v1.0.0
system-admin-server
This system enables the remote designing of a server.
Install
To enable design mode on your node application, install the packages:
// install system runtime package
$ npm install system-runtime --save
// install admin package
$ npm install system-admin-server --save
Then:
// require system runtime
var runtime = require('system-runtime');
// install and start admin system
runtime.install('system-admin-server');
// install your system from here or create one
// example
// create a system
var system = runtime.system('myapp');
// add your code in the start method of the system
system.on('start', function () {
console.log('Hello world !');
});
// start your system
system.start();
Design
- Launch System Designer,
- open the Configuration panel,
- select Server-side as value for Type of debugging,
- set
http://localhost
as value for Url of the server to debug, - click on the design button (the target icon),
- a panel A system has been found is shown
- click on OK.
The system running in node will be then imported in System Designer.
All your modifications to the current system in System Designer will be injected into the server.