https://github.com/nichoth/ssphotos
https://github.com/nichoth/ssphotos
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nichoth/ssphotos
- Owner: nichoth
- Archived: true
- Created: 2021-04-04T19:17:24.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-13T02:28:55.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T06:12:53.657Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://github.com/nichoth/ssb-browser-demo#readme
- Size: 428 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssphotos
Trying [ssb browser](https://github.com/arj03/ssb-browser-core)
## build
```
npm run build
```
## start a local sercer
```
npm start
```
* https://github.com/arj03/ssb-browser-core
* https://github.com/arj03/ssb-browser-demo
## testing
https://github.com/arj03/ssb-browser-core/issues/43#issuecomment-806189796
[ipc example](https://gist.github.com/ndelangen/3b2b981a4795e51ef4f8cf583764eb8a)
this isn't relevant here b/c the code being browserified doesn't run in a node process, so can't do ipc
Need to have 2 browser processes (2 identities). Then you publish a 'follow' msg for the other, and connect to the same 'room'. Would this work with `tape-run`? Need to start a separate process, and send the pub key via IPC msg.
```
npm test
```
## TODO
### test replication
* have them both connect to the same room
* get the public key via `console.log`
* can pass the pub key via env vars
The test file should 'follow' the example-app file
-------------------------------------------