Question

Is it possible to install a node.js in a Laravel app?

Our team is looking for a web server solution for this built application we have where it’s created with both Laravel and Node.js But looking at the sample repositories - I only see one of each that can be deployed in App Platform.

I want to know if it’s possible to have both Laravel and Node.js in one App?

Or, if it’s not something possible with App Platform simply, what do I need or what can I do to setup and deploy this kind of app?

Thank you in advance! :)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

👋🏼 @angelicas

Yes, you can deploy an app that uses both Node.js and PHP. Make sure you commit your Composer lockfile as well as your Node.js lockfiles (NPM’s or Yarn’s).

You can see an example in our Sample Laravel app: https://github.com/digitalocean/sample-laravel

Thanks @kamaln7 !

I’m not a web dev or a server admin myself, but I want to understand and know what kind of components do I need to add to my app platform or setup if I need to test and deploy an app built with laravel and node.js?

Is there a tutorial for the components anatomy for what I need for my app?