-
Notifications
You must be signed in to change notification settings - Fork 8
Create app
Alexey Gordeyev edited this page Jan 19, 2014
·
40 revisions
- Create Default Application
- Create Application with Theme
- Create Application with session
- Create Application with authorization
# 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
- Browse your application to http://localhost:3000
On initialization directories tree generated, like that
Available 7 themes default
, black
, blue
, green
, orange
, pink
, violet
. Default theme violet
.
# add `--theme` argument
$ trinte -i HelloWorld --theme default
See themes here.
# 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
$ trinte -i HelloWorld --auth
- Add deps to
trinte-auth
,passport
andpassport-local
modules - Add file
/config/authorization/local.js
example - Rewrite file
/config/routes.js