Skip to content

Commit f114e14

Browse files
atrakhConvex, Inc.
authored andcommitted
update CONTRIBUTING.md and README.md files for dashboard (#35093)
GitOrigin-RevId: 00de059f2a3175fee28cf72eeeb45da645082464
1 parent f7d888c commit f114e14

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ with our product plans. We are generally unlikely to take large or fundamental
2323
changes as community contributions. We think carefully about how our APIs
2424
contribute to a cohesive product in line with our roadmap, so we cannot promise
2525
that larger PRs will get the same level of attention.
26+
27+
Instructions for building and running Convex packages locally:
28+
29+
- [Building the backend and CLI from source](BUILD.md)
30+
- [Running the dashboard](npm-packages/dashboard-self-hosted/README.md)
31+
32+
Note: If you just want to self-host Convex and not modify the codebase, we
33+
recommend using the pre-built Docker image or binary. See the
34+
[self-hosted README](../self-hosted/README.md) for more information.

Justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ set positional-arguments
2222
run-local-backend *ARGS:
2323
cargo run -p local_backend --bin convex-local-backend -- "$@"
2424

25+
run-dashboard *ARGS:
26+
cd {{justfile_directory()}}/npm-packages/dashboard-self-hosted; NEXT_PUBLIC_DEPLOYMENT_URL="$@" npm run dev
27+
2528
# Uses an admin key from admin_key.txt for dev backends.
2629
# This uses the default admin key for local backends, which is safe as long as the backend is
2730
# running locally.
@@ -42,3 +45,4 @@ reset-local-backend:
4245
# (*) rush, the monorepo JS tool for deps and building
4346
rush *ARGS:
4447
cd {{invocation_directory()}}; "{{justfile_directory()}}/scripts/rush_from_npm-packages.sh" "$@"
48+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# dashboard-common
2+
3+
This package is shared code used by the [`dashboard`](../dashboard/README.md)
4+
(Convex Cloud) and [`dashboard-self-hosted`](../dashboard-self-hosted/README.md)
5+
(self-hosted Convex).
6+
7+
## Development
8+
9+
You cannot run this code directly, but you may run the `dashboard` and
10+
`dashboard-self-hosted` packages locally to test changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# dashboard-self-hosted
2+
3+
This is the dashboard for the self-hosted version of Convex. You may run this
4+
code locally to test changes.
5+
6+
## Configuration
7+
8+
To use the scripts set up in this repo you'll need to install
9+
[`Just`](https://github.com/casey/just)
10+
11+
- Just is used to execute scripts set up in the `Justfile`.
12+
- To install it see
13+
[Packages](https://github.com/casey/just?tab=readme-ov-file#packages), for
14+
example `cargo install just` or `brew install just`
15+
16+
Next you'll need the URL to your Convex deployment. This URL can point to a
17+
deployment hosted locally, remotely, or on Convex Cloud (URL found on the
18+
deployment settings page: https://dashboard.convex.dev/deployment/settings)
19+
20+
One time setup:
21+
22+
```
23+
# Install dependencies
24+
just rush install
25+
26+
# Build the project's dependencies
27+
just rush build -T dashboard-self-hosted
28+
```
29+
30+
Run the dashboard:
31+
32+
```
33+
just run-dashboard "YOUR_DEPLOYMENT_URL"
34+
```

npm-packages/dashboard/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Convex Dashboard
22

3+
This is the dashboard for Convex Cloud. If you intend to contribute to the
4+
self-hosted dashboard, see the
5+
[dashboard-self-hosted README](../dashboard-self-hosted/README.md). You may also
6+
connect the self-hosted dashboard to a Convex Cloud deployment.
7+
8+
The following instructions are intended for Convex employees developing the
9+
Cloud hosted dashboard.
10+
311
## Running against a local `big-brain`.
412

513
### First time setup

0 commit comments

Comments
 (0)