Skip to content
This repository has been archived by the owner. It is now read-only.
NodeJS & Angular4 Blog
JavaScript HTML
Branch: master
Clone or download
Latest commit 45c6e1c Sep 23, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api clear up Sep 23, 2017
config
portal
.dockerignore clear up Sep 23, 2017
.gitignore clear up Sep 23, 2017
.sailsrc
Dockerfile add docker Jul 1, 2017
README.md
README_CN.md
app.js
docker-compose-dev.yml
docker-compose.yml clear up Sep 23, 2017
package.json clear up Sep 23, 2017

README.md

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
You can’t perform that action at this time.