Architecture
The application combines an Express server, metadata-driven pages, Web Components, relational data, and Redis-backed services. app.js wires request middleware, loads engine properties, and mounts the routes. package.json identifies the application as version 0.7.0 and declares a single platform API version, v1.0.
Request path
Browser request
→ Express middleware and session context (`app.js`)
→ route (`routes/`)
→ controller or service (`controllers/`, `services/`)
→ database / query / permission engine (`core_engines/`)
→ EJS page, component asset, or JSON response
This is a conceptual path. Some controllers call helpers or module code directly, and scheduled jobs enter through a different path.
Main source areas
app.js: application composition, middleware, route mounting, and engine initialization.routes/: HTTP route declarations for pages, setup, reporting, authentication, APIs, components, and custom routes.controllers/: request handlers and presentation orchestration.services/: reusable behavior including OAuth, platform API selection, and component serving.core_engines/: database singleton, query container, permission engine, component compiler/parser, module engine, and schedule engine.platformAPI/v1.0/: versionedweSystemAPI supplied to server-side module code.environment_modules/standard/andenvironment_modules/custom/: packaged UI and behavior modules.views/: EJS templates for workspace, record, report, and setup screens.public/: browser assets; generated component JavaScript is now stored undercompiled/components/and served by/component.compiled/components/: generated browser wrappers, separate from the public static directory.tests/: focused regression tests for API, auth, permissions, components, and workflows.
Important route groups
app.js mounts /auth, /component, /server, /we-rest, /we-public, /api/meta, /oauth, /api, /we-setup, /report, /system, and /. The root route includes Home and object record pages. /we-setup contains administrative screens. /api is the generic record API. /server and the resolved custom route groups invoke configured module behavior.
Deployment boundary
The documentation does not specify startup or infrastructure commands yet. docker-compose.yml, Redis integration, and database connectivity exist in the source, but their supported setup sequence has not been finalized for this guide. See the intentionally blank Startup page when that work is ready.