A web-based diagram editor for Data Space Policy Networks (DSPN), built with Vue 3 and Vite.
Current version: 0.9.2
- Node.js v22 or later
- npm v10 or later
git clone https://github.com/HE-TEADAL-PROJECT/dspn-editor.git
cd dspn-editornpm installStarts both the Vite dev server (frontend) and the Express backend concurrently:
npm run dev- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
Build the frontend and serve everything through the Express server:
npm run build
node server/index.jsThe app will be available at http://localhost:3001.
| Variable | Default | Description |
|---|---|---|
PORT |
3001 |
Port the Express server listens on |
PROJECT_ROOT |
./projects |
Directory where project files are stored |
docker pull polimiis/dspn-editor:latestdocker run -d \
-p 3001:3001 \
-v /path/to/your/projects:/data/projects \
polimiis/dspn-editor:latestThe app will be available at http://localhost:3001.
The -v flag mounts a local directory into the container so your project files persist across restarts. Replace /path/to/your/projects with the desired path on your host machine.
docker run -d \
-p 3001:3001 \
-v /path/to/your/projects:/data/projects \
polimiis/dspn-editor:0.9.2docker build -t dspn-editor .When the application starts, no diagram is open by default. Use the Project Manager panel on the left to:
- Open an existing file — double-click any
.xmlfile in the project tree to open it in a new tab - Create a new file — use the Project Manager to create a new
.xmlfile, then open it
Each open diagram appears as a tab. Use the save button in the canvas toolbar to save changes.
Developed by the RAISE group at POLIMI with huge support of Claude.