Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Sharing the data model between a javascript front-end and REST back-end

13 views
Skip to first unread message

Terrence Brannon

unread,
Nov 7, 2019, 10:00:12 AM11/7/19
to Nagare users
The modern style of web app development is typically what you see in this reddit post:
* a javascript front-end that is highly interactive
* a REST back-end that provides model processing

The big problem with this style is:
How do you keep the data model synchronized between the language used for the front-end and back-end?

I think i"ve found the answer:
Use a tool that allows you to specify the data model in Python. On the front-end a Python framework which compiles to javascript is used. On the back-end a Python framework that generates a rest framework is used. They both refer to the same Python object model file for the application. But one of them uses it to render the front-end, do form validation, etc. The other one uses it for database processing etc.

So the big question:
It is apparent that Nagare can do the REST back-end. But how about the highly interactive javascript front-end? 
Muntjac was one of the best things going in Python for this.

Terrence Brannon

unread,
Nov 7, 2019, 11:31:53 AM11/7/19
to Nagare users
Reply all
Reply to author
Forward
0 new messages