You have to realise that Locomotive is
really ORM-agnostic. That means that it doesn't provide any sort of scaffolding or structuring regarding models at all. That said, the example you're referring to is a bit misleading, because it seems to imply that Locomotive does.
How you set up your ORM, whether it be mongoose or something else entirely, is totally up to you. I recently made a
boilerplate project to show how I used Locomotive together with Sequelize (which is an ORM for MySQL, SQLite and PostgreSQL). It's not very well documented, but the project isn't very big and hopefully quite easy to understand. Start with
config/initializers/10_sequelize.js to get an idea on how to find and load schemas and how to use them throughout your application.
– robert
Op maandag 7 januari 2013 14:23:34 UTC+1 schreef Illimar Tambek het volgende: