drawdb/server
2024-10-21 16:21:46 +08:00
..
index.js remove unnecessary endpoint 2024-10-21 16:21:46 +08:00
package-lock.json poc 2024-09-20 19:00:02 +08:00
package.json use ddb files as source 2024-09-23 16:24:39 +08:00
README.md remove unnecessary endpoint 2024-10-21 16:21:46 +08:00
server.js remove unnecessary endpoint 2024-10-21 16:21:46 +08:00
webpack.config.js poc 2024-09-20 19:00:02 +08: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 .ddb files 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 start

The server will be running at http://localhost:8080 (or the port specified by DRAWDB_PORT).