Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I recently recently switched from ASP MVC to Node.js and highly recommend switching.</p> <p>I can't give you all the information you're looking for, but I highly recommend Sequelize as an ORM and mocha (with expect.js and sinon) for your tests. Sequelize is adding transaction support in the next version, 1.7.0. I don't like QueryChainer since each of it's elements are executed separately.</p> <p>I got frustrated with Jasmine as a test framework, which is missing an AfterAll method for shutting down the Express server after acceptance tests. Mocha is developed by the author of Express.</p> <p>If you want to have an Express server load in plugins, you could use a singleton pattern like this: <a href="https://github.com/JeyDotC/articles/blob/master/EXPRESS%20WITH%20SEQUELIZE.md" rel="nofollow">https://github.com/JeyDotC/articles/blob/master/EXPRESS%20WITH%20SEQUELIZE.md</a> </p> <p>You will probably will also really like <a href="https://github.com/visionmedia/express-resource" rel="nofollow">https://github.com/visionmedia/express-resource</a> which provides a RESTful interface for accessing your models. For validation, I think you'll be happy with <a href="https://github.com/ctavan/express-validator" rel="nofollow">https://github.com/ctavan/express-validator</a></p> <p>Why would you need to test Node modules without using Node? It's considered standard to call a test script with a Makefile, and you can add a pre-commit hook to git to run the tests before making a commit.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload