Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://codeberg.org/rsbondi/nostr-launch
Launch local nostr relays and clients
https://codeberg.org/rsbondi/nostr-launch
Last synced: 24 days ago
JSON representation
Launch local nostr relays and clients
- Host: codeberg.org
- URL: https://codeberg.org/rsbondi/nostr-launch
- Owner: rsbondi
- Created: 2021-01-20T17:20:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Synced: 2022-09-13T19:35:31.390Z (over 2 years ago)
- Language:
- Homepage:
- Size: 129 KB
- Stars: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nostr - nostr-launch - a tool for launching a bunch of relays and clients locally for development and testing (Tools / Client reviews and/or comparisons)
README
### install
```
git clone https://codeberg.org/rsbondi/nostr-launch.git
cd nostr-launch
npm install
```### set up environment
```
export relay_path=path/to/relay-executable
export web_path=path/to/web-static-build
npm start
```or
```
relay_path=path/to/relay-executable web_path=path/to/web-static-build npm start
```### additional environment settings
```bash
### relays# number of relays to launch
relays=n # default 2# start port number for relays, will increment by 1 for each `relays`
start_relay=n # default 7447### clients
# number of clients to launch
clients=n # default 3# start port number for clients, will increment by 1 for each `client`
start_client=n # default 3000```
### usage
open a browser tab for each port ex. `localhost:3000` and in the client start connecting to relays ex. `ws://localhost:7447`