Commit 6b95509d92251961461a6d8573a940a424978eaf
update README, re-order depject inclusions of chess
mix irving committed on 7/24/2017, 10:50:38 AMParent: 2e9362f82b1d7defb64f07e1d94adad6b304e6ae
Files changed
README.md | changed |
main.js | changed |
package-lock.json | changed |
README.md | |||
---|---|---|---|
@@ -51,44 +51,20 @@ | |||
51 | 51 … | ```sh | |
52 | 52 … | git clone https://github.com/ssbc/patchbay.git | |
53 | 53 … | cd patchbay | |
54 | 54 … | npm install | |
55 … | +npm run rebuild | ||
55 | 56 … | ``` | |
56 | 57 … | ||
57 | 58 … | ||
58 | 59 … | ## Running the desktop app | |
59 | 60 … | ||
60 | 61 … | From inside the patchbay repo folder, | |
61 | 62 … | ||
62 | 63 … | ```sh | |
63 | -npm install -g electron electro font-awesome | ||
64 | -npm run rebuild | ||
65 | 64 … | npm start | |
66 | 65 … | ``` | |
67 | 66 … | ||
68 | -## Running in the browser | ||
69 | - | ||
70 | -_this is incomplete_ | ||
71 | - | ||
72 | -From inside the patchbay repo folder, | ||
73 | - | ||
74 | -``` | ||
75 | -npm install -g browserify indexhtmlify | ||
76 | -mkdir -p build && browserify main.js | indexhtmlify --title patchbay > build/index.html | ||
77 | -``` | ||
78 | - | ||
79 | -Make sure scuttlebot is allowing private connections. Stop any running sbot server, restart it with the `--allowPrivate` option and create a new modern invite: | ||
80 | - | ||
81 | -```sh | ||
82 | -sbot server --allowPrivate | ||
83 | -sbot invite.create --modern | ||
84 | -``` | ||
85 | - | ||
86 | -From inside the patchbay repo folder, run `npm run lite`. | ||
87 | - | ||
88 | -Lastly open `build/index.html` in a browser and append the invite | ||
89 | -created above using: index.html#ws://localhost:8989.... | ||
90 | - | ||
91 | 67 … | ## How to add a feature | |
92 | 68 … | ||
93 | 69 … | To add a new message type, add add a js to `./modules/` that exports a function named `message_content` (it should return an HTML element). To add a new tab, export a function named `screen_view` (returns an html element). | |
94 | 70 … |
main.js | ||
---|---|---|
@@ -16,16 +16,16 @@ | ||
16 | 16 … | require('setimmediate') |
17 | 17 … | |
18 | 18 … | // from more specialized to more general |
19 | 19 … | const sockets = combine( |
20 … | + ssbchess, | |
20 | 21 … | context, |
21 | 22 … | patchHub, |
22 | 23 … | bayGatherings, //adds menu items |
23 | 24 … | gatherings, |
24 | 25 … | horcrux, |
25 | 26 … | patchbay, |
26 | - patchcore, | |
27 | - ssbchess | |
27 … | + patchcore | |
28 | 28 … | ) |
29 | 29 … | |
30 | 30 … | const api = entry(sockets, nest('app.html.app', 'first')) |
31 | 31 … |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 131385 bytes New file size: 249044 bytes |
Built with git-ssb-web