Search code examples
node.jsexpressderbyjs

Derby Js: How to create controllers and models in single applicatoin


I am new to Derby Js. How and where to create routes to controllers. 2- How to create Foo, Bar controllers in 'controller' folder and Foo, Bar models in 'model' folder and how to call the models in controllers.

Thanks in advance


Solution

  • You probably came from Ruby or another similar MVC framework. Thing a little bit different in Derby. I advice you to:
    1. Read tutorials and FAQ: https://github.com/vmakhaev/derby-docs
    2. Make an app with 'derby new myapp' and play with it
    3. Take a look at examples: https://github.com/codeparty/derby-examples