mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
docs(workflowui): update README with database configuration
Updated README to document: - SQLAlchemy as database ORM layer - Database setup instructions for SQLite and PostgreSQL - Backend server configuration - Environment variables for database connections The backend now supports: - SQLite for local development (default) - PostgreSQL for production deployments - Automatic table creation via Flask-SQLAlchemy - Multi-tenant data isolation Users can now follow clear instructions to set up the database for both development and production environments.
This commit is contained in:
@@ -48,6 +48,7 @@ MetaBuilder DAG Executor
|
||||
| **Storage** | IndexedDB (Dexie) | Offline workflow persistence |
|
||||
| **HTTP** | Axios | API client with interceptors |
|
||||
| **Backend** | Flask | Python workflow execution |
|
||||
| **Database** | SQLAlchemy + PostgreSQL/SQLite | Persistent workflow storage |
|
||||
| **Validation** | n8n JSON Schema | Workflow and node validation |
|
||||
|
||||
## 🚀 Quick Start
|
||||
@@ -84,6 +85,22 @@ npm run dev # Frontend on http://localhost:3000
|
||||
npm run backend # Backend on http://localhost:5000
|
||||
```
|
||||
|
||||
### Database Setup
|
||||
|
||||
The backend uses SQLAlchemy for database persistence:
|
||||
|
||||
```bash
|
||||
# Default: SQLite (development)
|
||||
# The database file is created automatically at backend/workflows.db
|
||||
|
||||
# PostgreSQL (production)
|
||||
export DATABASE_URL=postgresql://user:password@localhost/workflows
|
||||
npm run backend
|
||||
|
||||
# Create tables
|
||||
python -c "from server_sqlalchemy import app, db; app.app_context().push(); db.create_all()"
|
||||
```
|
||||
|
||||
### Build
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user