Skip to content

Commit 0cb8b1a

Browse files
chore(web): remove backend leftovers
- Drop old dev/db scripts from package.json\n- Update README + connect error hints for split server\n- Remove unused Drizzle/Neon deps
1 parent b8030f5 commit 0cb8b1a

3 files changed

Lines changed: 7 additions & 22 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
# Vortex Experimental Mockups
1+
# Vortex Simulator — Web
22

3-
This repo ships:
3+
This repo contains the **frontend UI only** for the Vortex Simulator.
44

5-
1. A React UI mockup of Vortex (Humanode governance hub)
6-
2. An off-chain “simulation backend” served from `/api/*` (API handlers)
5+
Backend API lives separately in `humanode-network/vortex-simulator-server`.
76

8-
Humanode mainnet is used only as a read-only eligibility gate; all simulated governance state lives off-chain.
7+
Docs live separately in `humanode-network/vortex-simulator-docs`.
98

109
## Stack
1110

1211
- React with React Router
1312
- Rsbuild
1413
- Tailwind v4 (via PostCSS) + token-driven CSS (`src/styles/base.css`)
1514
- Yarn (Node version: `.node-version`)
16-
- API handlers in `api/` + Postgres via Drizzle
17-
- `db/` – Drizzle schema + migrations + seed builders
18-
- `scripts/` – DB seed/clear + local API runner
19-
- `prolog/vortexopedia.pl` – Prolog glossary mirror
2015
- `public/landing/` – landing page assets (see `public/landing/README.md`)
2116

2217
## Shared Patterns
@@ -28,5 +23,4 @@ Humanode mainnet is used only as a read-only eligibility gate; all simulated gov
2823
## Notes
2924

3025
- `dist/` is generated build output.
31-
- Keep glossary entries in sync between `src/data/vortexopedia.ts` and `prolog/vortexopedia.pl` if you edit definitions.
32-
- DB-backed dev requires `DATABASE_URL` + `yarn db:migrate && yarn db:seed` (see `docs/simulation/vortex-simulation-local-dev.md`).
26+
- UI expects the API at `/api/*`. During local dev, Rsbuild proxies `/api/*` to `http://127.0.0.1:8788` by default (override with `API_PROXY_TARGET`).

‎package.json‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,20 @@
55
"packageManager": "yarn@4.11.0",
66
"scripts": {
77
"dev": "rsbuild dev --open",
8-
"dev:api": "node --experimental-transform-types scripts/dev-api-node.mjs",
9-
"dev:full": "node scripts/dev-full.mjs",
108
"build": "rsbuild build",
119
"preview": "rsbuild preview",
1210
"typecheck": "tsc -p tsconfig.json --noEmit",
1311
"test": "yarn typecheck && yarn build",
14-
"db:generate": "drizzle-kit generate",
15-
"db:migrate": "drizzle-kit migrate",
16-
"db:clear": "node --experimental-transform-types scripts/db-clear.ts",
17-
"db:seed": "node --experimental-transform-types scripts/db-seed.ts",
1812
"prettier:check": "prettier --list-different .",
1913
"prettier:fix": "prettier --write ."
2014
},
2115
"dependencies": {
22-
"@neondatabase/serverless": "^1.0.2",
2316
"@polkadot/keyring": "^14.0.1",
2417
"@polkadot/util": "^14.0.1",
2518
"@polkadot/util-crypto": "^14.0.1",
2619
"@radix-ui/react-slot": "^1.2.4",
2720
"class-variance-authority": "^0.7.1",
2821
"clsx": "^2.1.1",
29-
"drizzle-orm": "^0.45.1",
3022
"lucide-react": "^0.554.0",
3123
"react": "^19.2.0",
3224
"react-dom": "^19.2.0",
@@ -41,7 +33,6 @@
4133
"@tailwindcss/postcss": "^4.1.17",
4234
"@types/react": "^19.2.5",
4335
"@types/react-dom": "^19.2.3",
44-
"drizzle-kit": "^0.31.8",
4536
"prettier": "^3.6.2",
4637
"prettier-plugin-tailwindcss": "^0.7.1",
4738
"tailwindcss": "^4.1.17",

‎src/app/auth/connectErrors.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export function formatAuthConnectError(input: { message: string }): string {
22
const message = input.message;
33

44
if (message.includes("HTTP 404")) {
5-
return "API is not available at `/api/*`. Start the backend with `yarn dev:api` (after `yarn build`) or run `yarn dev:full`. If you only run `yarn dev`, there is no API.";
5+
return "API is not available at `/api/*`. Start `vortex-simulator-server` (default `http://127.0.0.1:8788`) and ensure the web dev proxy targets it (override with `API_PROXY_TARGET`).";
66
}
77

88
if (
@@ -12,7 +12,7 @@ export function formatAuthConnectError(input: { message: string }): string {
1212
message.includes("ECONNREFUSED") ||
1313
message.includes("ECONNRESET")
1414
) {
15-
return "API is not reachable at `/api/*`. If you are running locally, start the backend with `yarn dev:api` (after `yarn build`) or run `yarn dev:full`. If you are on a deployed site, check that the backend is deployed and `/api/health` responds.";
15+
return "API is not reachable at `/api/*`. If you are running locally, start `vortex-simulator-server` and verify `/api/health` responds. If deployed, check the API service and reverse proxy.";
1616
}
1717

1818
return message;

0 commit comments

Comments
 (0)