Commit 5ddb61498a69d813054a66248db01b1b2bca23eb
add app_env notes to README
mix irving committed on 8/14/2017, 7:17:16 AMParent: f67dee83205ce75cdc20a89fdf5f45993d6809df
Files changed
README.md | changed |
app/html/thread.js | changed |
package-lock.json | changed |
README.md | ||
---|---|---|
@@ -1,24 +1,34 @@ | ||
1 | 1 | # Ticktack |
2 | 2 | |
3 | -## Planning | |
3 | +## Planning | |
4 | 4 | |
5 | 5 | Workplan 1 : https://hackmd.io/BwZhCYHZwNgFgLRxAU0XAhjECCcBGSDBGSfOSEDAE2oDMBWXIA==?view# |
6 | 6 | |
7 | 7 | Trello : https://trello.com/b/93eXDvVP/ticktack |
8 | 8 | |
9 | 9 | |
10 | 10 | ## Development |
11 | 11 | |
12 | -### Repos | |
12 | +### Repos | |
13 | 13 | |
14 | 14 | - `git@github.com:ticktackim/ticktack-wp1.git` |
15 | 15 | - `ssb://%tkJPTTaxOzfLbsewZmgC9CslSER0ntjQOcyhIk6y/cQ=.sha256` |
16 | 16 | |
17 | 17 | ### Install |
18 | 18 | |
19 | 19 | ```bash |
20 | -npm install | |
21 | -npm run setup | |
22 | -npm start | |
20 | +$ npm install | |
21 | +$ npm run setup | |
22 | +$ npm start | |
23 | 23 | ``` |
24 | 24 | |
25 | +### App env | |
26 | + | |
27 | +This app starts with default `ssb_appname` of `ticktack-ssb`, so you can find it's data in `~/.ticktack-ssb`. | |
28 | + | |
29 | +To load the app with your classic ssb key, run : | |
30 | + | |
31 | +```bash | |
32 | +$ ssb_appname=ssb npm start | |
33 | +``` | |
34 | + |
app/html/thread.js | ||
---|---|---|
@@ -16,10 +16,9 @@ | ||
16 | 16 | |
17 | 17 | function thread (id) { |
18 | 18 | // location here can expected to be: { page: 'home' } |
19 | 19 | |
20 | - var myId = api.keys.sync.id() | |
21 | - | |
20 | + const myId = api.keys.sync.id() | |
22 | 21 | const thread = api.feed.obs.thread(id) |
23 | 22 | const chunkedMessages = buildChunkedMessages(thread.messages) |
24 | 23 | |
25 | 24 | const threadView = h('Thread', |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 209660 bytes New file size: 190054 bytes |
Built with git-ssb-web