Run javascript on rails server side -


i have rails app rest api. part of models have javascript scripts users able upload.

i want create background worker task can make network request , execute javascript on result of network request server side , save database.

now have been told consider using rails front end api , use nodejs server being workers , executing javascript.

my main concern developing cross platform schema nodejs orm , rails orm.

so question twofold there way of developing database schema in sync across both node js server , rails server. else there way of executing javascript on rails server?

you can use https://github.com/balderdashy/waterline or https://github.com/sequelize/sequelize or https://developer.mozilla.org/en-us/docs/mozilla/projects/rhino/shell access same database rails app node.js app make sure reading database using node.js not writing


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -