File tree Expand file tree Collapse file tree 5 files changed +65
-0
lines changed Expand file tree Collapse file tree 5 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,12 @@ with our product plans. We are generally unlikely to take large or fundamental
23
23
changes as community contributions. We think carefully about how our APIs
24
24
contribute to a cohesive product in line with our roadmap, so we cannot promise
25
25
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.
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ set positional-arguments
22
22
run-local-backend * ARGS :
23
23
cargo run -p local_backend --bin convex-local-backend -- " $@"
24
24
25
+ run-dashboard * ARGS :
26
+ cd {{ justfile_directory ()}} / npm-packages/ dashboard-self-hosted; NEXT_PUBLIC_DEPLOYMENT_URL=" $@" npm run dev
27
+
25
28
# Uses an admin key from admin_key.txt for dev backends.
26
29
# This uses the default admin key for local backends, which is safe as long as the backend is
27
30
# running locally.
@@ -42,3 +45,4 @@ reset-local-backend:
42
45
# (*) rush, the monorepo JS tool for deps and building
43
46
rush * ARGS :
44
47
cd {{ invocation_directory ()}} ; " {{ justfile_directory ()}} /scripts/rush_from_npm-packages.sh" " $@"
48
+
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
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
+ ```
Original file line number Diff line number Diff line change 1
1
# Convex Dashboard
2
2
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
+
3
11
## Running against a local ` big-brain ` .
4
12
5
13
### First time setup
You can’t perform that action at this time.
0 commit comments