UNPKG

2.58 kBMarkdownView Raw
1# skale
2
3[![Join the chat at https://gitter.im/skale-me/skale-engine](https://badges.gitter.im/skale-me/skale-engine.svg)](https://gitter.im/skale-me/skale-engine?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4[![Build Status](https://travis-ci.org/skale-me/skale-cli.svg?branch=master)](https://travis-ci.org/skale-me/skale-cli)
5
6Create, run and deploy distributed NodeJS applications
7
8The skale command is the quickest and easiest way to create distributed
9scalable applications based on
10[skale-engine](https://www.npmjs.com/package/skale-engine) and then
11to submit them either locally or on the cloud.
12
13## Install
14
15`skale` and `skale-engine` have been tested so far on Unix-like
16system such as Linux or MacOSX. MS-Windows is not supported.
17
18Assuming you have already installed [NodeJS](https://nodejs.org):
19
20 $ sudo npm install -g skale
21
22This installs the skale command globally on your system.
23
24## Getting started
25
26To create an application called `my_app`, simply run
27
28 $ skale create my_app
29
30It will create a directory `my_app`, populate it with a template
31(hello world) application `my_app.js`, and install skale-engine
32dependency using [`npm`](https://npmjs.com).
33
34You can then go to `my_app` and run your app using `skale run`:
35
36 $ cd my_app
37 $ skale run
38
39To do something useful, modify your application by editing `my_app.js`,
40then run again using `skale run`.
41
42Under the hood, the `skale run` commands starts a skale-engine cluster on the
43the localhost at the first invocation, then simply executes `my_app.js`. You
44can check the status of the cluster using the `skale status` command, and stop
45it using `skale stop`.
46
47To go on further details, please refer to [documentation](https://skale-me.github.io/skale-engine/)
48and [skale examples](https://github.com/skale-me/skale-examples)
49
50## Deploying an application
51
52*Coming soon*
53
54## Usage
55```
56Usage: skale [options] <command> [<args>]
57
58Create, run, deploy clustered node applications
59
60Commands:
61 create <app> Create a new application
62 run [<args>...] Run application
63 deploy [<args>...] Deploy application (coming soon)
64 status print status of local skale cluster
65 stop Stop local skale cluster
66
67Options:
68 -h, --help Show help
69 -V, --version Show version
70```
71
72## Community
73
74* [Gitter](https://gitter.im/skale-me/skale-engine) for support and
75 discussion
76* [skale](https://groups.google.com/forum/#!forum/skale)
77 mailing list for general discussion about use and development
78
79## License
80
81[Apache-2.0](LICENSE)