How can use mongoose/express with ringojs

320 views Asked by At

I have tried nodejs for a month, but finally, I'm don't like asynchronous-style programming.

I just found ringojs which seems synchronous-style. I wonder if I can use mongoose and express with it?

2

There are 2 answers

3
genericdave On BEST ANSWER

Both Express and Mongoose are fundamentally built around Node and are asynchronous by design. Ringojs is a different beast than Node. Use something from Ringo's ecosystem. Even if you somehow got Express working, it would probably be a ton of trouble to get and keep it working correctly. If Ringo doesn't have anything in its own ecosystem worth using then it would probably be a good idea to think twice about using it.

0
Arnaud Rinquin On

Both node.js and ringo.js rely on Common.js specifications so there is a good chance of module compliancy, at least the basic ones.

As mongoose rely on native driver, I am not sure how this is handled by Ringo.