dev-rohit's avatar

CONFUSED ABOUT NODE JS AND PHP.

I am confused about learning node js, if I want to learn node js I have to be very good in JavaScript, react, mongo so many things to learn... Do I really need to learn node js ? Isn't PHP with laravel enough to make bigger and scalable applications?

0 likes
4 replies
automica's avatar
automica
Best Answer
Level 54

@dev-rohit I'd suggest you only need to know enough node.js to be able to install and configure node packages.

providing you can install node.js and npm i don't think theres much more you need at this point. If you are writing backend apps in Laravel even that isn't necessary.

James_Moore's avatar

Of course, Laravel is a full stack framework you can make great applications using Laravel with little to no Javascript. Node JS is javascript but its javascript that can be run on the backend. Laravel uses the package manager npm which comes with node, to deal with its front end dependencies. React is a front end framework for Javascript, mongo is a document database. Laracasts tutorials will usually use a simple mysql database and Vue JS instead of React.

Start slow following a laracasts tutorial to get a understanding of some php basics

  1. https://laracasts.com/series/php-for-beginners learn some php

  2. Build something small with php, google php project ideas

  3. https://laracasts.com/series/laravel-6-from-scratch

  4. Build something with Laravel

By then you'll have idea of what's going on and realize why you dont need to learn node js to build something great, but with that being learning any language has its benefits. As long as your building projects thats all that matters.

dev-rohit's avatar

Well I am aware of PHP programming I have been using it for 3 yrs now but when I hear someone saying that PHP is an old technology and PHP developers are getting less paid in comparison of someone who knows node js it just make me confused.

dev-rohit's avatar

Then I don't need to know cuz I already know how to use node js and npm.

Please or to participate in this conversation.