Skip to content

Commit

Permalink
Add a code block with example usage of spicedb
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Oct 23, 2024
1 parent 0a13c0b commit 85a12e7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages/spicedb/getting-started/protecting-a-blog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ Instead of introducing an unfamiliar example app and altering various locations
One of:

- An [Authzed] Permission System and associated [API Token] with `admin` access
- A [running instance] of [SpiceDB][SpiceDB] with the configured preshared key for SpiceDB
- A [running instance] of [SpiceDB][SpiceDB] with the configured preshared key for SpiceDB:

```bash
# Using the binary
spicedb serve --grpc-preshared-key "t_your_token_here_1234567deadbeef"

# Using Docker
docker run --rm -p 50051:50051 authzed/spicedb serve --grpc-preshared-key "t_your_token_here_1234567deadbeef"
```

[Authzed]: https://app.authzed.com
[API Token]: /authzed/concepts/restricted-api-access#tokens
Expand Down

0 comments on commit 85a12e7

Please sign in to comment.