@metaexplorer/editor-dev-server
v0.0.21
Published
server side scripts for local development
Readme
What's this?
This is the basis for a local development server that MetaExplorer-UIs can connect to
What does it do?
It contains a number of helpers to initialize default behaviour for a development server.
Features
use the
NOCODE_BLOCKS_PATHenvironment variable to set the path where your initial blocks are in. They will be copied to the editor-server's internal folder structure every time you start the serveruse
DEV_NOCODE_FOLDERto set the name of your working directory. It will appear once you run the serveruse
DYN_USER_CSS_FOLDERto set the name of the folder where you keep your styles. Will be a subfolder ofDEV_NOCODE_FOLDERto save data to the server before you have a working endpoint, use
http://localhost:5000/api/globals. It accepts GET and POST and will save the data it receives inglobals.jsona GET to
http://localhost:5000/api/blockswill retrieve all interpreters. A POST will save a single InterpreterRefMap-formatted json to the folder relative to itsnameselfvalue (i.e. blocks in the designer get saved in the right subfolder)
