You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node.js proxy for server-side interactive cli programs
2
+
---
3
+
4
+
Define jobs in [jobs.js](https://github.com/tkafka/node-console-proxy/blob/master/jobs.js), and let users run them and interact with their stdin through web browser.
5
+
6
+
Try the [showcase](/showcase), I recommend talking to [Eliza](https://github.com/tkafka/eliza-cli) :).
7
+
8
+

9
+
10
+
This is very useful for all kinds of automation, as you don't have to develop web frontend for your scripts and programs.
11
+
12
+
Example jobs.js file:
13
+
14
+
module.eports = {
15
+
showcase: {
16
+
name: 'Showcase',
17
+
description: '',
18
+
cwd: __dirname, // or __dirname if missing
19
+
variants: {
20
+
eliza: {
21
+
name: 'Eliza',
22
+
description: 'Eliza chat bot. Isn\'t she awesome?',
23
+
cwd: '~/eliza-cli', // cwd can be overriden for a job variant
24
+
command: 'node',
25
+
args: ['eliza']
26
+
},
27
+
ls: {
28
+
name: 'ls',
29
+
command: 'ls',
30
+
args: []
31
+
}
32
+
}
33
+
}
34
+
};
35
+
36
+
Uses [socket.io](http://socket.io/) to keep the link with server while job is running, kills job on server when user closes browser to prevent resource leaking.
37
+
38
+
Made in Prague by [@keff85](http://twitter.com/keff85).
39
+
40
+
Source at [github.com/tkafka/node-console-proxy](https://github.com/tkafka/node-console-proxy).
Copy file name to clipboardExpand all lines: views/index.jade
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,15 @@ extends layout
2
2
3
3
blockcontent
4
4
.message
5
-
h2 Node.js proxy for server-side interactive cli programs
6
-
7
5
:markdown
6
+
Node.js proxy for server-side interactive cli programs
7
+
---
8
+
8
9
Define jobs in [jobs.js](https://github.com/tkafka/node-console-proxy/blob/master/jobs.js), and let users run them and interact with their stdin through web browser.
9
10
10
11
Try the [showcase](/showcase), I recommend talking to [Eliza](https://github.com/tkafka/eliza-cli) :).
11
12
12
-

13
+

13
14
14
15
This is very useful for all kinds of automation, as you don't have to develop web frontend for your scripts and programs.
0 commit comments