2 ms·
What's confusing is that, if the React-based admin client uses an API to talk to the PHP wordpress site, why involve node.js at all? As far as I can tell, the
by madeofpalk 11y ago
What's confusing is that, if the React-based admin client uses an API to talk to the PHP wordpress site, why involve node.js at all?
As far as I can tell, the node.js portion is just returning an empty admin.html, and that's where client-side React.js kicks in? It seems PHP would be able to do that pretty well, with the advantage of single technology and a more obvious approach for the self-hosted wp.org sites.
- Viper007Bond 11y agoMy understanding is that the client and server side code is all of the same thing and Node.js is just used to generate the initial page load with the client continuing on from there. I wasn't involved with it's development so I could very well be incorrect. https://github.com/Automattic/wp-calypso/blob/master/docs/guide/tech-behind-calypso.md https://github.com/Automattic/wp-calypso/blob/master/docs/gu...
- madeofpalk 11y agoSo there are lots of folders and files in their server dir https://github.com/Automattic/wp-calypso/tree/master/server https://github.com/Automattic/wp-calypso/tree/master/server - but from what I can tell they're not doing universal javascript with react running on both client and server.