- Created manifest.yaml with Node.js runtime and routes - Set up package.json with React, TypeScript, Vite, and dependencies - Created TypeScript and Vite configuration files - Set up ESLint and Prettier - Created complete directory structure (frontend, backend, migrations) - Created initial database schema migration - Set up Express server with route handlers - Created frontend entry point files - Added version.txt with build 0.1.0.001
46 lines
828 B
YAML
46 lines
828 B
YAML
name: bp_wb
|
|
version: 0.1.0
|
|
description: BOSA Plugin Website Builder - Visual drag-and-drop page builder for BOSA apps
|
|
author: BOSA Team
|
|
|
|
runtime:
|
|
type: nodejs
|
|
entry: server.js
|
|
|
|
routes:
|
|
# Editor routes
|
|
- path: /
|
|
method: GET
|
|
handler: serveEditor
|
|
- path: /editor
|
|
method: GET
|
|
handler: serveEditor
|
|
|
|
# API routes for pages
|
|
- path: /api/pages
|
|
method: GET
|
|
handler: listPages
|
|
- path: /api/pages
|
|
method: POST
|
|
handler: createPage
|
|
- path: /api/pages/:id
|
|
method: GET
|
|
handler: getPage
|
|
- path: /api/pages/:id
|
|
method: PUT
|
|
handler: updatePage
|
|
- path: /api/pages/:id
|
|
method: DELETE
|
|
handler: deletePage
|
|
|
|
# Renderer route
|
|
- path: /preview/:id
|
|
method: GET
|
|
handler: previewPage
|
|
|
|
events:
|
|
publish:
|
|
- page.created
|
|
- page.updated
|
|
- page.deleted
|
|
|