Custom User Interface?

Hi,

I’m very new to erpnext development. I have created an app and installed it on my site. I’m trying to create a custom User Interface for my app with erpnext as my backend. I see that it is possible to use the “www” folder, or I can create a “page”.

I’m wondering if you more experienced folks could discuss the better path (or maybe something else all-together?) for delivering a custom user experience from within an app. In particular, I’m interested in how my JS can communicate with frappe via Python - how to wire this up, etc.

Thanks!