3 ms·
90% of the duplicate logic is data validation. How about using PyV8 to run javascript on the server, so you can share validation logic between the frontend and
by scardine 11y ago
90% of the duplicate logic is data validation.
How about using PyV8 to run javascript on the server, so you can share validation logic between the frontend and backend?
- ralmidani 11y agoRouting could also be shared; you could declare endpoints in one place, but the implementations for client and server would be different. At the risk of oversimplifying: on the server, routed actions are concerned with getting data from a database, serializing it, and sending it to the client. On the client, routed actions get data from the server and use it to render a template.