You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update examples and documentation with preview mode
- Add PreviewHostExample to app-host/objectstack.config.ts with full
preview mode KernelContext usage documentation
- Update app-host README with preview mode section, config table, and
OS_MODE=preview quick start
- Update content/docs/references/kernel/context.mdx with preview mode
enum value and PreviewModeConfig schema reference
- Update examples/README.md with preview mode in protocol coverage
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: examples/README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,14 +152,18 @@ pnpm build
152
152
**Level:** 🔴 Advanced
153
153
**Protocols:** System, API, Data
154
154
155
-
**Complete server implementation** showing how to build a metadata-driven backend. Features dynamic schema loading from plugins, auto-generated REST APIs, unified metadata API, and plugin orchestration.
155
+
**Complete server implementation** showing how to build a metadata-driven backend. Features dynamic schema loading from plugins, auto-generated REST APIs, unified metadata API, plugin orchestration, and **preview/demo mode**.
156
+
157
+
**Preview Mode:** Run with `OS_MODE=preview` to bypass login/registration and simulate an admin identity — ideal for marketplace demos and app showcases.
156
158
157
159
**Quick Start:**
158
160
```bash
159
161
cd examples/app-host
160
162
pnpm install
161
163
pnpm dev
162
-
# API available at http://localhost:3000
164
+
165
+
# Preview mode (no login required)
166
+
OS_MODE=preview pnpm dev
163
167
```
164
168
165
169
---
@@ -225,6 +229,7 @@ pnpm typecheck
225
229
|----------|---------|----------|
226
230
| Manifest | ✅ Complete | All examples with `objectstack.config.ts`|
227
231
| Plugin System | ✅ Complete |[App Host](./app-host/)|
0 commit comments