LessCode 1.0
Build API endpoints, services and scheduled workflows in a visual designer and run them on your own server.
Getting started
-
Introduction
What Total.js LessCode is, what you can build with it and where to start.
-
Install from source
Install LessCode with Node.js and start it on your computer or server.
-
Install with Docker
Run the official LessCode image with a volume that keeps your flow.
-
First access
Open the designer for the first time and run the example flow.
Designer
-
The designer
The parts of the designer screen: toolbar, component list, canvas and status bar.
-
Download components
Add ready-made components, such as Route, Response, Code and Timer, from the Total.js catalog.
-
Build a flow
Add nodes to the canvas, connect them, configure them and start them.
-
Apply and save
When your changes start to run and when LessCode writes them to the flow file.
-
Remove nodes
Remove one node or clear the whole canvas, and restart LessCode before you add new nodes.
-
Organize the canvas
Add notes to nodes and draw groups so a large flow stays easy to read.
-
Search in nodes
Find a node by any value in its settings, such as a URL.
Flows
-
Variables
Keep values such as texts, addresses or keys outside your nodes and use them in settings and code.
Testing and debugging
-
Test with Trigger and Print
Send test data into a flow by hand and look at what each node produces.
-
The Console
Read log lines and errors of your flow in the Console panel.
-
Errors
See which node failed and why.
-
Pause the flow
Stop the whole flow for a moment and start it again.
Customizing
-
Extensions
Add your own HTML, styles and server code to LessCode with files in the extensions folder.
Production
-
Run in production
Choose the port and address, protect the designer and keep LessCode running.
-
Back up your flow
Keep a copy of your flow and restore it on the same or another server.
Components
Data
-
The flow file
Where LessCode keeps your work and what the file contains.
Recipes
-
Create a GET endpoint
Build an HTTP endpoint that reads a query argument and answers with JSON.
-
Create a POST endpoint with validation
Accept JSON data, check it and answer with success or with a 400 error.
-
Run a workflow on a schedule
Run work every few seconds with Timer, or at set times with Crontab.
-
Call an HTTP API
Turn an HTTP address into a reusable node with Link endpoint and send data to it.
FAQ
-
The designer
Answers to common questions about the designer.
-
Endpoints
Answers to common questions about API endpoints.
Development
-
Components and development
The components of LessCode come from the Total.js Flow catalogue: their reference and how to write your own are in the Flow documentation.