blog.depold.com |
Web programming to the rescue! A blog about Node.JS, JavaScript and Ruby on Rails! |
ckoewing asked: First of all a big approval to your project 'Sequelize', it's awesome!!! Of course i would like to use it, but i'm a newbie in js, node and express. :( So, did you know an example where Sequelize is used together with JMVC (JavascriptMVC framework)? I'm searching for a javascript-based client- and server-side application architecture. I hope you can help me. :)
Hey there, you can use express with sequelize. Express is actually only seperating the view from the controller. To get the model layer, I recommend to create a folder called “models”. Afterwards you can add model files (e.g. person.js) and import it in the controller.
Does this help?