An Editor for editing and simulating light dance show
http://localhost:8080 - editor
http://localhost:4000 - editor-server
http://localhost:8081 - file-server
http://localhost:8082 - controller-server
You can use Docker to install and start all the services. You can see the editor on http://localhost:8080.
docker-compose -f dev.docker-compose.yml up -dThis will install all the dependencies in the subfolders.
yarn install:allThis will run all the services parallelly. You can see the editor on http://localhost:8080.
yarn devFor development for editor-server
You need to have MongoDB running on mongodb://localhost:27017
docker-compose -f dev.docker-compose.yml up -d mongodb redisdbAfter starting all services, one can add 2021's control and position data into mongoDB.
cd utils
yarn
export NODE_OPTIONS="--max-old-space-size=8192" // Incase heap out of memory
node initDB.js ${filePath}
// node initDB.js ../others/dance_json/export.json
node initLED.js ${filePath}
// node initLED.js ../others/dance_json/test_exportLED.jsonCreate the eeinfo network
docker network create eeinfoRun services nginx, editor, editor-server, file-server, redisdb, mongodb.
docker-compose -f prod.docker-compose.yml up -dEditor will run on http://localhost:8080.
Editor-server will run on http://localhost:4000.
After starting all services, one can add 2021's control and position data into mongoDB.
cd utils
yarn
export NODE_OPTIONS="--max-old-space-size=8192" // Incase heap out of memory
node initDB.js ${filePath}
// node initDB.js ../others/dance_json/export.json
node initLED.js ${filePath}
// node initLED.js ../others/dance_json/test_exportLED.json
