Skip to content

Commit d0e4caf

Browse files
ianmacartneyConvex, Inc.
authored and
Convex, Inc.
committed
rename client -> frontend and server -> backend (#24347)
Let's use terminology that's more consistent with the app overall vs. convex. - Vite / Next is the "frontend" command, which have clients to Convex but that isn't their defining quality - Convex `dev` is the "backend" sync. There might be a Next.js server too. GitOrigin-RevId: f733ba327ebb78cb0c1d692379aa2772128548d1
1 parent da91697 commit d0e4caf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ The `convex` script in `Justfile` automatically adds appropriate `--url` and
164164
To run the client web application you can run the demo Vite server via:
165165

166166
```bash
167-
npm run dev:client
167+
npm run dev:frontend
168168
```
169169

170170
Note that unlike the hosted Convex workflow, we don't want to run the
171-
`dev:server` command since `convex dev` is already running.
171+
`dev:backend` command since `convex dev` is already running.
172172

173173
_The following CLI commands may be useful when interacting with your backend:_
174174

demo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ You're just a few clicks away from having a webapp powered by Convex.
44

55
Get started by running `npm install` inside of this directory. Then, run
66
`npx convex dev --url [local url] --admin-key [key]` to get the backend running
7-
locally. Finally, you can use `npm run dev:client` to view the frontend. We hope
8-
you enjoy using Convex!
7+
locally. Finally, you can use `npm run dev:frontend` to view the frontend. We
8+
hope you enjoy using Convex!

demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "convex-tutorial",
33
"version": "0.0.0",
44
"scripts": {
5-
"dev": "npm-run-all --parallel dev:server dev:client",
5+
"dev": "npm-run-all --parallel dev:backend dev:frontend",
66
"build": "vite build",
7-
"dev:server": "convex dev",
8-
"dev:client": "vite --open --clearScreen false",
7+
"dev:backend": "convex dev",
8+
"dev:frontend": "vite --open --clearScreen false",
99
"predev": "convex dev --until-success"
1010
},
1111
"dependencies": {

0 commit comments

Comments
 (0)