Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

unix/tcome

Repository files navigation

T-COME, 中文

next blog, present for you.

I'm not perfect, i'm sorry.

PREVIEW   API  

This is a blog, based on nodejs and mongodb.
If you need a frontend, goto tcome-frontend

FEATURES

  • 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...

INSTALL

Use tcome-cli to install blogs, contains only server code

$ npm i tcome-cli -g
$ tcome init [blog-name]

DEVELOP

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, ...]

DEMO

PREVIEW demo1 demo2

TEAM

Witt Bulter
Witt Bulter

Releases

No releases published

Sponsor this project

Packages

No packages published