mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-11-04 22:36:21 +00:00
DrawDB Node.js Wrapper
This is a Node.js application that serves static files for the DrawDB frontend and provides an API to handle file operations for .ddb files.
Environment variables:
DRAWDB_FILE_DIR: Directory where.ddbfiles will be stored (default:/usercode).DRAWDB_HOME: Path to the DrawDB frontend static files (default:../dist).DRAWDB_PORT: Port number for the app (default:8080).
Run dev
export DRAWDB_FILE_DIR=/some-dir-to-write-ddb-files
cd server
npm run dev
The server will be running at http://localhost:8080 (or the port specified by DRAWDB_PORT).