A Python-based REST API app simulating a storage system with JSON persistence and an optional modern UI.
- Install dependencies:
pip install Flask- Just one for now. - Run the app:
python app.py- For UI:
export ENABLE_UI=Truethenpython app.py
- For UI:
- API: Access at
http://localhost:5000(e.g.,POST /system) - UI (optional): Visit
http://localhost:5000/uiwhen enabled - Raw JSON:
GET /data/<resource_type> - Terminal: API responses print in green to distinguish from persistent JSON
- CRUD for System, Node, Volume, Host, Settings
- One system per instance (guard rail)
- Flat JSON persistence in
/data - Plug-and-play modern UI with dropdowns, toggled with
ENABLE_UI - Sidebar to view raw JSON files