README: step-by-step instructions for running a node
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -4,17 +4,61 @@ A free, distributed marketplace for buying, selling and renting. Listings are
|
|||||||
replicated across the nodes of everyone who participates, so there is no central
|
replicated across the nodes of everyone who participates, so there is no central
|
||||||
server and no cost. See [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
server and no cost. See [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
||||||
|
|
||||||
## Try it
|
## How to run it
|
||||||
|
|
||||||
|
You need Go (see `go.mod` for the version). Node.js is not needed to run a node.
|
||||||
|
|
||||||
|
**1. Build**
|
||||||
|
|
||||||
```
|
```
|
||||||
go build -o bin/allmende ./cmd/allmende
|
git clone ssh://git@git.stinnesbeck.com:2222/nils/allmende.git && cd allmende
|
||||||
bin/allmende init # shows your 12-word recovery phrase once
|
go build -o bin/allmende ./cmd/allmende # or: make build
|
||||||
bin/allmende run # UI and API on http://127.0.0.1:8080
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`run` prints a sign-in link. Open it and choose your region by place name
|
**2. Create your identity (once)**
|
||||||
("My listings" > "Regions"). To start with a region instead, add `--region u1x`
|
|
||||||
(u1x = Hamburg area).
|
```
|
||||||
|
bin/allmende init # or: make init
|
||||||
|
```
|
||||||
|
|
||||||
|
This prints your 12-word recovery phrase **once**. Write it down: it is the only
|
||||||
|
way to get your identity and listings back if the machine is lost
|
||||||
|
(`allmende recover`). Keys and the database live in the data directory,
|
||||||
|
`~/.local/share/allmende` by default (change it with `--data <dir>` or the
|
||||||
|
`ALLMENDE_DATA` environment variable).
|
||||||
|
|
||||||
|
**3. Start the node**
|
||||||
|
|
||||||
|
```
|
||||||
|
bin/allmende run # or: make run
|
||||||
|
```
|
||||||
|
|
||||||
|
The UI and API are on http://127.0.0.1:8080. Leave it running: a node has to stay
|
||||||
|
up to receive messages and keep your listings alive. Stop it with Ctrl+C.
|
||||||
|
|
||||||
|
**4. Sign in and choose a region**
|
||||||
|
|
||||||
|
`run` prints an "Owner login" link in the terminal. Open it in your browser. A new
|
||||||
|
node follows no region yet, so you land on the region picker: type a place name
|
||||||
|
(Bonn, Köln, München, ...), add the cells you want and save. It applies at once.
|
||||||
|
To start with regions instead, pass them on the command line, by code or by name:
|
||||||
|
|
||||||
|
```
|
||||||
|
bin/allmende run --region u1j --region "Köln"
|
||||||
|
```
|
||||||
|
|
||||||
|
**5. Use it**
|
||||||
|
|
||||||
|
- Open http://127.0.0.1:8080 to search listings, and write to an owner from a listing.
|
||||||
|
- In the browser, "My listings" > "New listing" publishes one. Listings last up to
|
||||||
|
30 days; renew them there (the terminal reminds you when 5 days are left).
|
||||||
|
- Answers to your listings show up under "My listings", and the terminal says
|
||||||
|
when a message arrives.
|
||||||
|
|
||||||
|
Useful flags for `run`: `--http <addr>` (default `127.0.0.1:8080`),
|
||||||
|
`--listen <multiaddr>` (libp2p port), `--bootstrap <peer>`, `--no-mdns`,
|
||||||
|
`--data <dir>`. `bin/allmende help` lists them all. To run it for real, in Docker
|
||||||
|
or on NixOS, see below.
|
||||||
|
|
||||||
Open http://127.0.0.1:8080 to search. Your browser checks every listing's
|
Open http://127.0.0.1:8080 to search. Your browser checks every listing's
|
||||||
signature itself, so you don't have to trust the node it talks to. The UI is
|
signature itself, so you don't have to trust the node it talks to. The UI is
|
||||||
|
|||||||
Reference in New Issue
Block a user