How could I go around using frappe as a headless cms? I’m more so speaking about creating a Frontend where users can login, which sends an api request to login into the frappe bench and then, from there fetch data from custom doctypes to be displayed on this Frontend
Do you mean to use ERPNext Ecommerce?
1 Like
- How I (and enterprises I helped setup) prefer, Ionic Mobile App connected to ERPNext as backend. Have your frontend decoupled from frappe. Make api calls from frontend to frappe or anywhere else using bearer tokens, needs cors configured. Explore this OAuth 2 and OIDC - Frappe Manual to accept third party OAuth2 tokens in Frappe. For enterprises OAuth2/OIDC is secure best practice. Potentially they’ll have all their users in some OIDC provider already.
- Easier and most common you’ll find is what new frappe apps are doing. Build and pack the frontend as a frappe page. Check any app like helpdesk, CRM. Tool to create such frontend GitHub - NagariaHussain/doppio: A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.. For beginners OAuth2/OIDC is useless overkill.
1 Like
More so like a simplified interface with only some key features
I’d honestly prefer to keep them separate if possible.