I'm looking for the most efficient path to convert over time my own made php framework for nodejs and I believe that nodejs experts and specific developers who had their years working with apache/php/mysql will be able to give objective answers based on knowledge and experience that won't be just opinions but solution to a problem.
I'm working on a project that requires real time functionalities for which node/socket.io appear to be the most efficient solution.
- I've built my own php/mysql OOP framework to manage projects over the years with some very nice functionalities for web content managers and nice functionalities for me to radically simplify specific development (based on my own personal logic obv.) and manage all my projects in just one instance of my framework.
- There is no way I can rewrite all this for node just now.
- I have to keep taking advantages of my framework & back-office tools to work fast while developing my first node apps.
- After this new project is in production, I will start to rewrite for nodejs the functionalities server side & client side; one at a time (keeping my local dev environment & all my project in prod always in sync).
How do I start introducing nodejs to my framework ? so that
I won't spend too much time on it now (except for the node apps I need obviously)
I won't have too many headaches when I start replacing php and the old js to take advantage of node
php/mysql & js/mongodb should nicely cohabit on the servers until there is no more php in the framework
What follows is where I'm at, possible solution I've identified & am considering, not additional questions + there may be other ways I'm not aware of yet, hence the post.
Should I better be :
For my first node apps : using a proxy like Nginx to have node & apache, mysql & mongodb side by side ? or is it worth investing the time now to have my php engine working with node, using modules for php, sql ? another path ?
writing the node apps with mongodb as db server & when necessary exchange values from sql to the app using php ? or is it worth investing right now the time to move from mysql to mongodb the full framework rather than after one tool/functionality at a time ? another path ?
- From top to bottom (i.e. starting by replacing the http request handler & have js passing the ball to php for the rest and so on, would I be able to do that ?)
- From bottom to top (i.e. the plugins, the backoffice tools, then templates, then rendering engine...) ?