Update README.md

This commit is contained in:
Savely Krendelhoff 2025-08-23 18:53:40 +07:00
parent 89b5fb9cf1
commit 6c1aa0fd29
No known key found for this signature in database
GPG key ID: F70DFD34F40238DE

View file

@ -11,17 +11,41 @@ The Hash of Wisdom server requires clients to solve computational puzzles (proof
### Prerequisites
- Go 1.24.3+
- Docker (optional)
- [Task](https://taskfile.dev/) (optional, but recommended)
### Building
```bash
# Build server
go build -o hash-of-wisdom ./cmd/server
# Build client
# Build client
go build -o client ./cmd/client
```
### Running
#### Using Task (Recommended)
```bash
# Most useful command - run all checks
task check
# Start server
task server -- -config config.yaml
# Connect client
task client -- --addr=localhost:8080
# Run tests
task test
# See coverage
task test-coverage
# See all available commands
task --list
```
#### Manual Commands
```bash
# Start server (uses config.yaml by default)
./hash-of-wisdom