1
sleek
6y

Hey guys just a small question, when should nodejs be used. Ik for chats and stuff its great i used socket io before but i mean if a client wants a very basic website is it worth using nodejs or should i just stick to php. (Php haters kindly dont answer)

Comments
  • 2
    Define "basic website".

    If it's a static website just HTML+CSS+JS and a web server is enough. Or a static site generator. No need for PHP.

    If it's a dynamic website then use whatever you like and are faster with, really. PHP, python, node, doesn't really matter as long as you like doing it.

    Just node might not be enough though. You'll want to pair it with some templating engine or framework. For example, I usually use react and I write a simple server in node to do some pre-rendering before sending it to the browser.
Add Comment