An online editor to design, simulate and control the lights
http://localhost:4000 - editor-server
http://localhost:8081 - file-server
http://localhost:8082 - controller-server
# in Lightdance-Editor
pre-commit install# in Lightdance-Editor
nvm install
corepack enable
corepack installThen by executing nvm use you can choose the specified version of node and pnpm
copy the environment variables for development
# in Lightdance-Editor/editor-server
cp .env.development .envstart mySQL and redisDB
# in Lightdance-Editor
docker compose -f dev.docker-compose.yml up -dmigrate the database
# in Lightdance-Editor/editor-server
cargo prisma migrate dev --skip-generate --name initThis will install all dependencies for the app.
# in Lightdance-Editor
pnpm install:allThis will setup a venv for python (>3.10 recommended), remember to select it as interpreter before developing frontend.
There are the services you'll need to run if you are developing editor-server. You need to start all of them manually. Run these commands in different terminals respectively, in the order shown below:
pnpm dev:file-server
pnpm dev:editor-serverIf you are developing the command center, you may also need to run:
# in Lightdance-Editor/controller-server
cp .env.defaults .env
# in Lightdance-Editor
pnpm dev:controller-serverTo bundle the frontend blender add-on, run:
pnpm dev:bundle # For local development
pnpm prod:bundle # For productionThe bundled extension will be stored at ./editor-blender-{unix,win}.zip for Linux/MacOS and Windows respectively
, to install the add-on, see Blender Add-ons Documentation or editor-blender/README.md.
This command runs all services in parallel. This is useful for demo, yet not recommended in development.
pnpm devIf you are running this for the first time, you need to initialize the database for things to work.
# Lightdance-Editor/utils
pnpm install
node initDB.js jsons/exportDataEmpty.jsonmigrate the database
# in Lightdance-Editor/editor-server
cargo prisma migrate dev --skip-generate --name initStart all services
docker compose -f prod-support/prod.docker-compose.yml up -dEditor-server will run on http://localhost:4000.
After starting all services, one must initialize the database.
# Lightdance-Editor/utils
export NODE_OPTIONS="--max-old-space-size=8192"
pnpm install
node initDB.js jsons/exportDataEmpty.jsonRefer to utils/README.md for editor configurations and utility usage.

