Potentially change server model, possible?

I know it’s not supported right out of the box, but is it possible to change the server model of a project? (Manually)

It happens that I start with a quick PoC and want to develop this into a MVP. But it is possible that the model I worked with, e.g. NodeJS, but needs to be PHP for the later deployment.

As Wappler comes with an abstraction layer, it should be possible?

1 Like

You could possibly re-use the server actions, but the page layout no way

Re-using the server actions requires to you encapsulate the JSON in a PHP file (if porting from NodeJS to PHP). For this procedure you create a new Wappler PHP project and get a sense how the server actions are written as PHP files

Short answer: No!

For a starter, the folder structure is completely different. Where the document root folder for Node is public, the document root folder for a PHP application is directly under the site root.

Then, as @Apple has stated, the abstraction layer consists of JSON files; PHP are PHP files.

It is best to redo the project rather than have the hassle of modifying the folder structure and abstraction layer.

Question, why not stay with Node?

Thank you for your replies.
I was hoping that changing the model is somewhat possible.

@ben this depends on the customer, especially in Germany PHP is widely used for small to mid size projects and clients are tied into long term contracts. It’s still a Wordpress / Woocommerce worlds.

Let’s see how I handle this in the future. But most likely I have to start with PHP again for smaller gigs.

2 Likes