You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run `yarn install` in the _root_ project directory.
89
+
90
+
Install LFS: `git lfs install`
91
+
92
+
### Running for development
93
+
94
+
```
95
+
yarn run dev
96
+
```
83
97
84
98
### Testing
85
99
@@ -106,8 +120,39 @@ yarn run lint
106
120
107
121
### Adding dependencies
108
122
109
-
This project uses [yarn](https://yarnpkg.com/) for managing dependencies.
110
-
111
123
```sh
112
124
yarn add <package>
113
125
```
126
+
127
+
### Updating wasm dependencies
128
+
129
+
The project contains prebuilt WASM files for versions of both SpiceDB and zed. To update the versions, edit the [wasm-config.json] file with the desired tag/commit hash and then run from the project root:
Copy file name to clipboardExpand all lines: README.md
+12-67Lines changed: 12 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,13 @@
7
7
8
8
# Playground
9
9
10
-
The SpiceDB Playground is an interactive app for building a [SpiceDB] schema, interacting with test relationships, and quickly iterating with test assertions.
10
+
The [SpiceDB] Playground is an interactive app for building a [SpiceDB] schema, interacting with test relationships, and quickly iterating with test assertions.
11
11
12
12
Whether you're just getting started learning SpiceDB concepts or need to develop a new permissions system schema for your application, the SpiceDB playground has functionality to help.
13
13
14
-
SpiceDB Playground features include:
14
+

15
+
16
+
Features include:
15
17
16
18
- Rich text editor with syntax highlighting and tooltips
17
19
- Visual relationship editor with support for defining caveat context data
@@ -27,11 +29,15 @@ SpiceDB is a graph database purpose-built for storing and evaluating access cont
27
29
28
30
As of 2021, broken access control became the #1 threat to the web. With SpiceDB, developers finally have the solution to stopping this threat the same way as the hyperscalers.
@@ -84,35 +90,7 @@ To enable the sharing functionality on Vercel, you need to configure the followi
84
90
-`VITE_DISCORD_SERVER_ID` - Discord server ID
85
91
-`VITE_DISCORD_INVITE_URL` - Discord invite URL (defaults to https://authzed.com/discord)
86
92
87
-
You can set these environment variables in the Vercel dashboard under your project's Settings > Environment Variables.
88
-
89
-
### NodeJS
90
-
91
-
The `build` directory in the project root directory after running `yarn build` will contain an optimized production React application that can be served using your preferred NodeJS hosting method.
Run `yarn install` in the _root_ project directory.
108
-
109
-
Install LFS: `git lfs install`
110
-
111
-
## Running for development
112
-
113
-
```
114
-
yarn run dev
115
-
```
93
+
You can set these environment variables in the Vercel dashboard under your project's _Settings > Environment Variables_.
116
94
117
95
### Running for development with sharing enabled
118
96
@@ -122,39 +100,6 @@ The `vercel` CLI can be used to run locally with sharing enabled:
122
100
VITE_SHARE_API_ENDPOINT=http://localhost:3000 SHARE_SALT=... AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... S3_ENDPOINT=... S3_BUCKET=... vercel dev
123
101
```
124
102
125
-
## Updating wasm dependencies
126
-
127
-
The project contains prebuilt WASM files for versions of both SpiceDB and zed. To update the versions, edit the [wasm-config.json] file with the desired tag/commit hash and then run from the project root:
You can try both [SpiceDB](https://github.com/authzed/spicedb) and [zed](https://github.com/authzed/zed) entirely in your browser on a SpiceDB Playground deployment thanks to the power of [WebAssembly](https://authzed.com/blog/some-assembly-required).
0 commit comments