-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
651 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ addons: | |
|
||
services: | ||
- mongodb | ||
- redis-server | ||
|
||
before_install: | ||
- $CXX --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
[![build status][travis-image]][travis-url] | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
[](https://david-dm.org/jackhutu/jackblog-api-express) | ||
[](https://david-dm.org/jackhutu/jackblog-api-express#info=devDependencies) | ||
|
||
[travis-image]: https://travis-ci.org/jackhutu/jackblog-api-express.svg?branch=master | ||
[travis-url]: https://travis-ci.org/jackhutu/jackblog-api-express | ||
|
@@ -10,21 +12,17 @@ | |
[coveralls-url]: https://coveralls.io/github/jackhutu/jackblog-api-express?branch=master | ||
|
||
## 简介 | ||
Jackblog 是使用 Node.js + MongoDB + 其它客户端框架, 开发的个人博客系统,前后端分离,仿简书模板.此为服务端express版. | ||
服务端有: | ||
[express版](https://github.com/jackhutu/jackblog-api-express) | ||
[koa版](https://github.com/jackhutu/jackblog-api-koa) | ||
客户端有: | ||
[angular1.x版](https://github.com/jackhutu/jackblog-angular1) | ||
[react redux 版](https://github.com/jackhutu/jackblog-react-redux) | ||
[vue 版](https://github.com/jackhutu/jackblog-vue) | ||
移动端有: | ||
[react native 版](https://github.com/jackhutu/jackblog-react-native-redux) | ||
Jackblog 是使用 Node.js + MongoDB + Redis + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板. | ||
服务端有: [express 版](https://github.com/jackhutu/jackblog-api-express) , [koa 版](https://github.com/jackhutu/jackblog-api-koa) | ||
客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react redux 版](https://github.com/jackhutu/jackblog-react-redux) , [vue 版](https://github.com/jackhutu/jackblog-vue) | ||
移动端有: [react native 版](https://github.com/jackhutu/jackblog-react-native-redux), [ionic2.0 版](https://github.com/jackhutu/jackblog-ionic2) | ||
##### 此为服务端Express版, 为客户端提供api. | ||
|
||
## 环境准备 | ||
``` | ||
node.js 4.0+ | ||
mognodb 3.0+ | ||
redis 2.8+ | ||
``` | ||
|
||
## 配置 | ||
|
@@ -40,27 +38,30 @@ mognodb 3.0+ | |
}, | ||
``` | ||
|
||
|
||
## 开发 | ||
``` | ||
$ git clone [email protected]:jackhutu/jackblog-api-express.git | ||
$ cd jackblog-api-express | ||
$ npm install | ||
$ gulp serve | ||
``` | ||
配合客户端测试的测试模式 | ||
|
||
``` | ||
$ gulp serve:test | ||
``` | ||
|
||
## 线上布署 | ||
``` | ||
$ pm2 start process.json | ||
``` | ||
可参考[利用git和pm2一键布署项目到vps](http://angular1.jackhu.top/article/55cd8e00c6e998b817a930c7) | ||
可参考[利用git和pm2一键布署项目到vps](http://jackhu.top/article/55cd8e00c6e998b817a930c7) | ||
|
||
## 测试 | ||
``` | ||
$ gulp test | ||
``` | ||
配合客户端测试的测试模式 | ||
|
||
``` | ||
$ gulp serve:test | ||
``` | ||
|
||
## License | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ exports.paths = { | |
istanbul: 'test_coverage', | ||
server:'server' | ||
}; | ||
|
||
/** | ||
* 错误处理 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.