Node.js is a runtime environment that allows you to execute server-side, what used to be essentially client-side, code.
Built on the Ruby programming language, Ruby on Rails is a fully-fledged website framework which includes everything you need to complete a website project including the ability to manage logic, routing, and applications, all out of the box.
Node.Js Vs Ruby On Rails: Which To Choose to build Airbub like web app??
Both are really good, mature, battle-tested.
They've their own pros and cons.
If I were you I'll choose NodeJS, because it'll enhance my JS knowledge so that it will help me while developing for front-end! Also, it's easy to hire JS engineers.
But it's just a personal preference
I didn't get your point on why NodeJS is not a fully-fledged website framework! What made you think so? Any features missing from Ruby on rails?
There are companies, that switched from Ruby on Rails to Node.js:
You can use both. With nodejs you can use for example express (that's an example, there a lot of other framework available) that will allow to manage more comfortably routing and manage logic.
Use the language that you prefer / have more experience.
If you have lot of users, nodejs will have advantage to handle more efficiently high traffic, but if you don't think have lot of users it may not be a problem to use ruby.
j
stuff ;)
Ruby is way slower but it has a way better expressions. Node outperforms ruby in certain scenarios.
If you add another layer like typescript on top of node. There is nothing to say against node.
But the bigger the project get the more you want your compiler to complain if you do something stupid.
Ruby has the advantage of being duck-typed which allows some guarantees within a function / method.
The way more important question to me is ... which language do you already know? and why not use both for the things they are good in?