T-COME, 中文
I'm not perfect, i'm sorry.
This is a blog, based on nodejs and mongodb.
If you need a frontend, goto tcome-frontend
- Support login/register/manage
- Any users can publish articles
- Support comments
- Canonical interface(RESTfulAPI),highly scalable
- Search and more configuration
- Elegant code
- More features are under development...
Use tcome-cli to install blogs, contains only server code
$ npm i tcome-cli -g
$ tcome init [blog-name]
tips: require node-gyp,see node-gyp
* install package
$ npm install
* install sails.js
$ sudo npm install sails -g
* install grunt (optional, if you need)
$ sudo npm install grunt -g
run:
* if node version < 7.6.0 (npm start = node --harmony-async-await app.js)
$ npm start
* if node version >= 7.6.0
$ sails lift
make api doc:
$ npm install apidoc -g
$ npm run api
create file:
$ sails generate api <foo>
$ sails generate model <foo> [attribute1:type1, attribute2:type2 ... ]
$ sails generate controller <foo> [action1, action2, ...]
Witt Bulter |