AVL Tree Car Front reads a single JSON file at startup to discover where the backend lives. All REST calls and the Socket.IO connection are routed through the two URLs declared in that file. Changing either value — for example, when the backend runs on a non-default port or on a remote server — requires only a quick edit before you reload the page.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/avl_tree_car_front/llms.txt
Use this file to discover all available pages before exploring further.
Config File Location
The configuration file lives at:Default Configuration
4500) that the ATC backend uses out of the box. In most local development setups you do not need to change anything.
Configuration Keys
urlAPI
The base URL for all REST HTTP requests. AVL Tree Car Front calls the following endpoints on this base URL:
| Method | Path | Purpose |
|---|---|---|
POST | /avl/node/add | Insert a new obstacle node into the AVL tree |
POST | /avl/node/remove | Delete an obstacle node from the AVL tree |
POST | /avl/add/configs | Push a full obstacle configuration (Load JSON flow) |
GET | /data/json/obstacles_types.json | Fetch the list of available obstacle type definitions |
urlSOCKET
The base URL of the Socket.IO server. The application connects to the AVLTree namespace by appending it to this value at runtime:
How the Config Is Consumed
configs.json is loaded once, immediately when the page initialises. Inside main.mjs, the App class reads the file through a helper utility and stores both values as globals that every controller can access:
window.URLAPI is used throughout all controllers and services whenever a REST request is made, and configs.urlSOCKET is used by SocketService to open the Socket.IO connection to ${configs.urlSOCKET}/AVLTree.
The obstacle type definitions are also fetched during this same startup phase:
urlAPI before — or immediately as — the page loads, otherwise the obstacle type list will not populate and parts of the UI will be unavailable.
Common Scenarios
Backend on a different port If you started the ATC backend on port8000 instead of 4500, update both keys:
127.0.0.1 / localhost with the actual IP address or hostname: