forked from Deuxfleurs/tricot
Better doc
This commit is contained in:
parent
eabb52a6c0
commit
1cb3880966
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -87,10 +87,19 @@ cargo run -- --letsencrypt-email you@example.com --http-bind-addr [::1]:8080 --h
|
||||||
|
|
||||||
Register services:
|
Register services:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
|
cd examples/node
|
||||||
|
npm install
|
||||||
|
node server.mjs
|
||||||
consul services register -name=localhost -tag="tricot localhost" -address [::1] -port 3000
|
consul services register -name=localhost -tag="tricot localhost" -address [::1] -port 3000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Test it:
|
||||||
|
|
||||||
|
```
|
||||||
|
node client.mjs
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue