Skip to content

Commit 67a60f3

Browse files
committed
readme
1 parent e66f3a3 commit 67a60f3

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
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+
![Talking to Eliza](http://tmskfk.com:3999/images/eliza-cli.png)
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).

public/images/eliza-cli.png

-88.1 KB
Loading

public/images/[email protected]

129 KB
Loading

views/index.jade

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ extends layout
22

33
block content
44
.message
5-
h2 Node.js proxy for server-side interactive cli programs
6-
75
:markdown
6+
Node.js proxy for server-side interactive cli programs
7+
---
8+
89
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.
910

1011
Try the [showcase](/showcase), I recommend talking to [Eliza](https://github.com/tkafka/eliza-cli) :).
1112

12-
![Talking to Eliza](/images/eliza-cli.png)
13+
![Talking to Eliza](/images/eliza-cli@2x.png)
1314

1415
This is very useful for all kinds of automation, as you don't have to develop web frontend for your scripts and programs.
1516

0 commit comments

Comments
 (0)