doc: add quickstart to readme

This commit is contained in:
wpetit 2024-02-27 15:15:25 +01:00
parent c851a1f51b
commit df1a586d38
2 changed files with 22 additions and 2 deletions

View File

@ -15,6 +15,12 @@ OPENWRT_DEVICE ?= 192.168.1.1
watch: deps ## Watching updated files - live reload
( set -o allexport && source .env && set +o allexport && go run -mod=readonly github.com/cortesi/modd/cmd/modd@latest )
clean:
rm -f .emissary-*
rm -f emissary.sqlite*
rm -f server-key.json
rm -f agent-key.json
.PHONY: test
test: test-go ## Executing tests

View File

@ -16,14 +16,28 @@ Control plane for "edge" (and OpenWRT-based) devices.
# Start server and a local agent
make watch
# In a second terminal, create a api token, an admin token and a tenant
# In an other terminal
# Create an admin token
make .emissary-admin-token
# Create a new tenant
make .emissary-tenant
# Create a new writer token for this tenant
make .emissary-token
# Claim the agent for your newly created tenant
make claim-agent
# Query you agents
# Query your agents
./bin/server client agent query
# Load sample specs for your agent
make load-sample-specs
## Optional: reset your workspace
make clean
```
## Install