Skip to content
Alexey Gordeyev edited this page Jan 19, 2014 · 19 revisions

Back to Documentation

How to create Controller via CLI TrinteJS MVC

Table of contents

Command format

  format: trinte -g rest [rest name] [field(s)]

Create a default RestFul with namespace

$ trinte -g rest v1#Post active:bool title content:text created:date author

Generated files, path like that:

    .
    |
    `-- app
        |-- models 
        |   `-- Post.js
        `-- controllers
            `-- v1
                `-- PostsController.js
            

Back to Documentation

Clone this wiki locally