1019 B
1019 B
Quickstart: Plugin Architecture & Svelte Web UI
Prerequisites
- Python 3.9+
- Node.js 18+
- npm or pnpm
Setup
-
Install Backend Dependencies:
cd backend python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows pip install -r requirements.txt -
Install Frontend Dependencies:
cd frontend npm install
Running the Application
-
Start Backend Server:
# From backend/ directory uvicorn src.app:app --reload --port 8000 -
Start Frontend Dev Server:
# From frontend/ directory npm run dev -
Access the UI: Open
http://localhost:5173in your browser.
Adding a Plugin
- Create a new Python file in
backend/src/plugins/(e.g.,my_plugin.py). - Define your plugin class inheriting from
PluginBase. - Implement
executeandget_schemamethods. - Restart the backend (or rely on auto-reload).
- Your plugin should appear in the Web UI.