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

Back to Documentation

Table of contents

Create Default Application

      # Create application
      $ trinte -i HelloWorld     
      # intall dependencies              
      $ cd HelloWorld && npm -l install        

      # generate scaffold
      $ trinte -g crud User active:bool name email password
      # running server
      $ trinte -s                              

On initialization directories tree generated, like that

Create Application with Theme

Available 7 themes default, black, blue, green, orange, pink, violet. Default theme violet.

      # add `--theme` argument
      $ trinte -i HelloWorld --theme default

See themes here.

Create Application with Session

      # add `--sess` argument
      $ trinte -i HelloWorld --sess

Will be the following changes:

  • Add deps to connect-caminte module
  • Rewrite file /config/session.js code here

Create Application with Authorization

  $ trinte -i HelloWorld  --auth
  • Add deps to trinte-auth, passport and passport-local modules
  • Add file /config/authorization/local.js example
  • Rewrite file /config/routes.js

Back to Documentation

Clone this wiki locally