How qaziong/workflow-automation-builder works
Dynamic Workflow Automation Builder lets users register or sign in, manage their own workflows, then visually edit and save a graph of trigger, action, and condition nodes. The graph is design data only; nodes do not execute. The frontend calls the Express API, which validates and authenticates requests, scopes workflow operations to the owner, and persists workflow data in MongoDB. The graph preserves the documented dashboard, editor, authentication, health, and API responsibilities. Some subsystem links rely on README statements or the source index because their implementation excerpts were not provided.
Main entry points: App.jsx Routes and pages · app.js Express API · WorkflowEditorPage.jsx Workflow editor · auth.routes.js Auth routes
Components 27
Client authentication
- Routes and pages
client/src/App.jsx - Sign-in and registration
client/src/features/auth/components/AuthPage.jsx - Credential form
client/src/features/auth/components/AuthForm.jsx - Session context
client/src/features/auth/AuthContext.jsx - Protected routes
client/src/features/auth/components/ProtectedRoute.jsx - Auth API calls
client/src/services/authService.js
Client workflows
- Workflow dashboard
client/src/pages/dashboard/DashboardPage.jsx - Workflow editor
client/src/pages/workflows/WorkflowEditorPage.jsx - Graph canvas
client/src/features/workflows/components/WorkflowCanvas.jsx - Node configuration
client/src/features/workflows/components/NodeConfigurationPanel.jsx - Workflow dialog
client/src/features/workflows/components/WorkflowDialog.jsx - Workflow API calls
client/src/services/workflowService.js - HTTP API client
client/src/services/apiClient.js
Server API
- Express API
server/src/app.js - Auth routes
server/src/routes/auth.routes.js - Workflow routes
server/src/routes/workflow.routes.js - Health endpoint
server/src/routes/health.routes.js - Authentication handlers
server/src/controllers/auth.controller.js - Workflow handlers
server/src/controllers/workflow.controller.js - Session verification
server/src/middleware/auth.middleware.js - Body validation
server/src/middleware/validate-body.middleware.js - Server startup
server/src/server.js
Persistence
- User model
server/src/models/user.model.js - Workflow model
server/src/models/workflow.model.js - Mongo connection
server/src/config/database.js
Other components
- User
- MongoDB
Connections 33
- User → Routes and pages: uses
client/src/App.jsx - Routes and pages → Sign-in and registration: routes to
client/src/App.jsx - Routes and pages → Workflow dashboard: routes to
client/src/App.jsx - Routes and pages → Workflow editor: routes to
client/src/App.jsx - Routes and pages → Protected routes: guards routes
client/src/App.jsx - Sign-in and registration → Credential form: renders
client/src/features/auth/components/AuthPage.jsx - Sign-in and registration → Session context: uses session
client/src/features/auth/components/AuthPage.jsx - Session context → Auth API calls: calls
client/src/features/auth/AuthContext.jsx - Protected routes → Session context: reads session
client/src/features/auth/components/ProtectedRoute.jsx - Workflow dashboard → Workflow API calls: manages workflows
client/src/pages/dashboard/DashboardPage.jsx - Workflow dashboard → Workflow dialog: renders
client/src/pages/dashboard/DashboardPage.jsx - Workflow editor → Workflow API calls: loads and saves
client/src/pages/workflows/WorkflowEditorPage.jsx - Workflow editor → Graph canvas: renders
client/src/pages/workflows/WorkflowEditorPage.jsx - Workflow editor → Node configuration: uses
client/src/pages/workflows/WorkflowEditorPage.jsx - Auth API calls → HTTP API client: requests
client/src/services/authService.js - Workflow API calls → HTTP API client: requests
client/src/services/workflowService.js - HTTP API client → Express API: sends HTTP
client/src/services/apiClient.js - Express API → Auth routes: mounts
server/src/app.js - Express API → Workflow routes: mounts
server/src/app.js - Express API → Health endpoint: mounts
server/src/app.js - Auth routes → Authentication handlers: dispatches
server/src/routes/auth.routes.js - Auth routes → Session verification: protects profile
server/src/routes/auth.routes.js - Auth routes → Body validation: validates body
server/src/routes/auth.routes.js - Workflow routes → Workflow handlers: dispatches
server/src/routes/workflow.routes.js - Workflow routes → Session verification: requires session
server/src/routes/workflow.routes.js - Workflow routes → Body validation: validates body
server/src/routes/workflow.routes.js - Authentication handlers → User model: creates and reads
server/src/controllers/auth.controller.js - Session verification → User model: finds user
server/src/middleware/auth.middleware.js - Workflow handlers → Workflow model: reads and writes
server/src/controllers/workflow.controller.js - Server startup → Express API: starts
server/src/server.js - Server startup → Mongo connection: connects
server/src/server.js - Mongo connection → MongoDB: connects
- Health endpoint → MongoDB: checks availability