mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-02 09:45:00 +00:00
docs: frontends,dbal (1 files)
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
# DBAL Frontend
|
||||
|
||||
This directory now hosts a standalone Next.js project that renders the DBAL Daemon marketing/status view and exposes the same `/api/status` endpoint used by the main workspace.
|
||||
`frontends/dbal` is now a dedicated Next.js app that ships the DBAL Daemon overview plus a standalone `/api/status` endpoint.
|
||||
|
||||
## Getting started
|
||||
## Structure
|
||||
|
||||
- `app/layout.tsx` wires up the serif/sans fonts, global background, and theme-aware `body` styles.
|
||||
- `app/page.tsx` simply renders the shared `src/DaemonPage` export (metadata flows through the page for SEO).
|
||||
- `app/globals.css` provides Tailwind base/utility imports plus a small reset so the page stands on its own.
|
||||
- `app/api/status/route.ts` returns `getStatusResponse()` from `src/status.ts`, which the client-side `ServerStatusPanel` polls.
|
||||
- `src/ServerStatusPanel.tsx` is a client component that reports health, latency, and error feedback inside the marketing shell.
|
||||
|
||||
## Running locally
|
||||
|
||||
```bash
|
||||
cd frontends/dbal
|
||||
@@ -10,4 +18,8 @@ npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The project reuses the shared components in `src/` so the main `frontends/nextjs` app can still import `@dbal-ui/*`.
|
||||
Build and lint commands are the usual Next.js scripts (`npm run build`, `npm run lint`, `npm run typecheck`).
|
||||
|
||||
## Integration with the monorepo
|
||||
|
||||
The main `frontends/nextjs` app still imports `@dbal-ui/*` via the `tsconfig` path pointing to `frontends/dbal/src`, so nothing breaks when the standalone app ships in isolation.
|
||||
|
||||
Reference in New Issue
Block a user