Note
See the final note
Back-End (Server) for the "avl_tree_car_front" project
This project provides the logic and data structures for managing the AVL Tree and its Nodes.
It is required for the front-end to work properly.
Preview (Front-End View)
First.Project.-.Data.Structure.-.2025_2.-.UCALDAS.-.SRM.mp4
Important
This project is the server/backend for ATC Frontend.
Please set up this backend before using the frontend!
- Download/clone this repository
git clone https://github.com/tutosrive/avl_tree_car.git
- Change directory to the cloned folder
cd avl_tree_car - Ensure you have Python installed (100% Python project)
- (Optional) Set up a virtual environment (You can use InitVenv
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Run the server
python run.py # ALternative py run.py - Make sure the server is running without errors!
Your frontend can now connect to this backend for all AVL Tree operations.
Note
Yo can use this JSON test. configs.json
{
"configs": {
"total_distance": 1000,
"velocity": 10,
"ms_update": 200,
"jump_height": 40,
"car_colors": ["#F54927", "#8F2510", "#BD2C11"]
},
"obstacles": [
{ "x": 100, "y": 20, "type": "rock" },
{ "x": 760, "y": 10, "type": "trunk" },
{ "x": 990, "y": 50, "type": "nail" },
{ "x": 560, "y": 12, "type": "cone" },
{ "x": 780, "y": 15, "type": "tire" },
{ "x": 360, "y": 45, "type": "tree" },
{ "x": 550, "y": 20, "type": "chair" },
{ "x": 140, "y": 10, "type": "person" }
]
}