Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Paarth Aggarwal
Paarth Aggarwal
3,731 Points

E-commerce Website. PHP OR Node.Js?

How Can I create AN E-commerce website? I want to Learn NodeJs first but then I Thought that PHP Is more suitable for big projects like this and also has some great Frameworks for E-commerce like Opencart and Other. What Should I learn for developing big projects?

Joseph Chiang
Joseph Chiang
3,942 Points

Node seems to be the better option because of several benefits such as high performance, possibilities and what it has to offer in the server-side. It is improving in terms of future use for projects as more companies are incorporating Node. NodeJS is also asynchronous and allows more flexibility in deployment/management of connections so the scalability is much higher. On the back-end, part of it is compiled. The language also allows for much more flexibility and runs on ES7 (modern version). If you learn javascript it would help to learn Node as you plan on making a website (front/backend).

I'm just starting off with this having learnt from Team Treehouse - I would say go with PHP as in most cases to use Node you need a dedicated server which have fixed costs and it is complicated to maintain relative to PHP, which can run on a shared server (much cheaper) and you could use plugins such as Woocommerce, or other cheap, reliable technology. If you want to make a business then PHP would get you to your goal of selling quicker.

The advantages of Node (asynchronous etc) do not seem to benefit a typical ecommerce website, where you likely will not hit that bottleneck - in my experience anyway.

Jordan Watson
Jordan Watson
14,738 Points

Most would say PHP, I love Node JS although there is no point using a specific technology when there is perfectly aduquate tech out there for E-Commerce solutions especially for a commercial project/client try magento 2 very good solution! https://magento.com/advantage or alternatively WordPress WooCommerce.