Rails is a relatively mature Ruby-based web environment designed to handle object portability with object binding in a relational database.
Node.js is much newer on the scene , and unlike Rails, it is a more bare-bones package that allows you to use server-side Javascript applications thanks to the rather tight HTTP (S) API. Node applications are inherently event driven , which may or may not be ideal for your application.
Since it seems to you that you need persistence of data (you mentioned access to MySQL data ...), it would be easier to get started with Rails, since it comes complete with all the things you need in this regard and is designed to facilitate this kind of application.
If you really don't need constant relational information, Node is probably better, as it stays in your way and allows you to decide how to handle things. Itβs important to note that Node is a much more βcodingβ structure than Rails, if you want something a bit higher level, but still easier than Rails, which runs on Node, express is a good place to start.
However, if you want to try Node (I confess: this is a lot of fun!), It is possible to access MySQL in a pleasant, event-independent manner . Here are two modules that will be useful:
source share