• Stars
    star
    289
  • Rank 142,876 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Jackblog react 版, 个人博客系统, 使用服务端渲染(Universal / Isomorphic), react, redux, react-router, react-bootstrap, immutablejs, redux-form等

jackblog react 版

Dependency Status devDependency Status

Jackblog 是使用 Node.js + MongoDB + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板.
服务端有: express 版 , koa 版
客户端有: angular1.x 版 , angular2.x 版 , react 版 , vue 版
移动端有: react native 版, ionic2.0 版

此为客户端react版, 需要配合服务端使用.

服务端任选一种, 请预先安装并启动服务端

开发

$ git clone [email protected]:jackhutu/jackblog-react.git
$ cd jackblog-react
$ npm install
$ npm run dev

在浏览中打开http://localhost:3000

调试

  • redux-logger 默认开启, 关闭方法
webpack-> webpack.config.dev.client.js -> __DEVLOGGER__ : false
webpack-> webpack.config.dev.client.js -> __DEVTOOLS__ : true

目录结构

.
├── README.md           
├── dist                     // 项目build目录
├── logs                     // 生产环境日志目录
├── src                      // 生产目录
│   ├── actions              // redux action目录
│   ├── api                  // API 请求
│   ├── assets               // css 和图片资源
│   ├── components           // 组件
│   ├── reducers             // redux reducer目录
│   ├── store                // store配置
│   ├── util                 // 工具函数
│   └── client.js            // 客户端入口
│   └── config.js            // api url, cookie domain等配置文件
│   └── index.html           // 生产环境生成ejs文件
│   └── routes.js            // 路由配置
│   └── server.js            // 服务端渲染文件
├── webpack                  // Webpack配置目录
│   ├── webpack.config.dev.client.js        // 开发的客户端Webpack配置文件
│   ├── webpack.config.dev.server.js        // 开发的服务端渲染Webpack 配置文件
│   ├── webpack-config-prod.js              // 生产的Webpack 配置文件
├── History.md               // 更新日志
├── nodemon.json             // nodemon配置文件
├── process.json             // pm2配置文件
├── server.js                // 项目server入口文件
.

生产环境构建

$ npm run build 或 npm run start

线上布署

$ pm2 start process.json

License

MIT

More Repositories

1

jackblog-vue

Jackblog vue 版, 个人博客系统, 使用 vue2, vuex, vue-resource, vue-router, vee-validate, vue-toast 等.
Vue
1,931
star
2

jackblog-api-express

Jackblog API Server Express版, 个人博客系统, 基于RESTful架构, 使用Node.js, Express, MongoDB, Redis, Token Auth, 七牛云存储等.
JavaScript
414
star
3

jackblog-api-koa

Jackblog API Server Koa 版, 个人博客系统, 基于RESTful架构, 使用Node.js, Koa, MongoDB, Redis, Token Auth, 七牛云存储等.
HTML
312
star
4

jackblog-angular2

Jackblog Angular 2.0 版, 个人博客系统, 使用angular2, typescript, rxjs, ng2-bootstrap, webpack2等.
TypeScript
100
star
5

jackblog-ionic2

Jackblog App ionic 2.0 版, 一个使用 ionic2.0 + typescript 开发的博客App.
TypeScript
86
star
6

jackblog-react-native

Jackblog React Native版, 使用redux.
JavaScript
74
star
7

jackblog-express-angular

一个完整的博客系统,基于REST架构,使用Node.js + Express + Mongodb + Angular,仿简书模板.
JavaScript
41
star
8

jackblog-angular1

jackblog angular1.x 版
JavaScript
34
star
9

jackblog-admin

Jackblog 后台管理
JavaScript
31
star
10

koa2-webpack-startkit

koa2-webpack-startkit
JavaScript
7
star
11

qilin

一款轻量级的前端应用框架
JavaScript
7
star
12

react-boilerplate

JavaScript
2
star
13

kettle-web

JavaScript
2
star
14

angular2-cookies

angular2 cookie service
TypeScript
2
star
15

angular-study

2
star
16

test-example

各种测试样例
JavaScript
1
star
17

jackblog-sass

Jackblog css 样式, 使用sass + compass
CSS
1
star
18

jenkins-deploy-nodejs

1
star
19

test001

test001
1
star
20

umi-antd-pro

TypeScript
1
star
21

vue-boilerplate

JavaScript
1
star
22

postcss-study

postcss + gulp | webpack
JavaScript
1
star
23

pug-inject-webpack-plugin

JavaScript
1
star