The Total.js LessCode app uses the Total.js Flow engine for quickly creating API endpoints. Run, code and release.
Requirements:
- Total.js
v5
- Node.js
+v19
- FlowStream files must be generated manually and stored in
/databases/flowstreams/{name|id}.json
- FlowStream identifier is always taken from the filename. E.g.,
registration.json
, identifier isregistration
- How to edit FlowStream? Visit http://127.0.0.1:8000/flowstreams/?token=YOUR_TOKEN_GENERATED_BY_THE_APP
- How to obtain a list of FlowStreams in JSON format? Visit http://127.0.0.1:8000/flowstreams/?token=YOUR_TOKEN_GENERATED_BY_THE_APP as
XMLHttpRequest
- FlowStreams are part of the main thread (Flow worker is disabled)
The app will show you access to the Flow editor in the terminal/command-line output.
Manual installation:
- install the Node.js platform (+v19) (https://nodejs.org)
- download
LessCode
source code - open the
LessCode
directory in the terminal or command-line - run
npm install
(once) - run
npm start
(runs app)
Docker Hub:
docker pull totalplatform/lesscode
docker run -p 8000:8000 totalplatform/lesscode
Docker Compose:
git clone https://github.com/totaljs/lesscode.git
cd lesscode
docker compose up