Ruby on rails and Node.js

后端 未结 4 2118
轮回少年
轮回少年 2020-12-24 01:57

I am wondering how to integrate node.js on a rails app (for learning purpose).

Based on Michael Hartl tutorial (http://railstutorial.org/) I realized a basic twitter

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-24 02:46

    **Run node along side your rails server**

    If you want to intergrate your Rails app with Node you could use the node-rails gem

    Node Rails will enable you to run a Node server along side your Rails application and have the two share authentication NodeRails assumes you are using Devise for your authentication. Node-Rails uses [redis gem][2] , so you will need to have that installed. Learn more about using npm packages on Rails.

提交回复
热议问题