Create, test, deploy and run distributed NodeJS applications
The skale command is the quickest and easiest way to create distributed scalable applications based on skale-engine and then to execute them either locally or on the cloud.
skale
and skale-engine
have been tested so far on Unix-like
system such as Linux or MacOSX. MS-Windows is not supported.
Assuming you have already installed NodeJS:
sudo npm install -g skale
This installs the skale command globally on your system.
To create an application called my_app
, simply run
skale create my_app
It will create a directory my_app
, populate it with a template
(hello world) application my_app.js
, and install skale-engine
dependency using npm
.
You can then go to my_app
and run your app using skale test
:
cd my_app
skale test
To do something useful, modify your application by editing my_app.js
,
then run again using skale run
.
Under the hood, the skale run
commands starts a skale-engine cluster on the
the localhost at the first invocation, then simply executes my_app.js
. You
can check the status of the cluster using the skale status
command, and stop
it using skale stop
.
To go on further details, please refer to documentation and skale examples
Coming soon
Usage: skale [options] <command> [<args>]
Create, run, deploy clustered node applications
Commands:
create <app> Create a new application
test [<args>...] Run application on local host
deploy [<args>...] Deploy application on skale cloud
run [<args>...] Run application on skale cloud
status print status of local skale cluster
stop Stop local skale cluster
Options:
-h, --help Show help
-V, --version Show version