Giter VIP home page Giter VIP logo

blog's Introduction

Blog

前言

blog参考:https://github.com/erikras/react-redux-universal-hot-example
app版:https://github.com/mhbseal/blog-react-native

后端:express + co + mongoose + ...
前端:react + redux + react-router + ...
线上地址:http://mhbseal.com
app线上下载地址:https://pan.baidu.com/s/1skP4nu9

准备

安装 nodejs(>=4) 和 mongodb(且启动)

运行

git clone https://github.com/mhbseal/blog.git  // 仓库
// 后端be
cd be && npm install  // 安装
npm start  // 启动
npm run start.noauth  // 启动(初次运行,用此免登陆模式)
// 前端fe
cd fe && npm install  // 安装(可能有点慢)
npm run build.dev // 打包客户端JS
npm start  // 启动

说明

1.访问地址

http://localhost:3004  // 前台地址
http://localhost:3004/admin  // 后台地址

2.几个config文件

/be/config/  //后端配置文件(数据库、session、host、port等)
/fe/src/config/  // 前端配置文件(后台访问目录路径、host、port等)

待优化、已知Bug

1.abort请求
2.immaculate.js的引入

更新日志

0.6.0(2017-02-13)
适配blog的react-native版

0.5.0(2016-09-28)
基于工程,前后端代码彻底分离,升级react,babel及其相应pkg。

1.blog前后端代码彻底分离fe/be
2.apiServer接口格式优化
3.serverLogs优化
4.react->15+,babel->6+,node->6.4+,other->last
5.增加文章点赞功能
6.增加请求时loading动画、失败时toast提示
7.优化文章留言
8.修改后台用户列表bug
9.其他bug修改、功能优化

0.4.0(2015-12-03)
服务一分为2(apiServer + renderServer),基于react + redux + react-router,对renderServer实现前后端同构,首次加载走服务端,脚本加载后走客户端。

1.整体代码架构优化
2.前后端同构

0.3.0(2015-08-07)
基于express + co + mongoose,又重写了blog(代码量不是很大),并对代码结构进行了优化,why?see 0.2.0

1.后台免登陆
2.blog说明

0.2.0(2015-06-09)
基于koa + mongoose,重写了blog,新增了n多功能,并优化了代码,换的目的是体验一下TJ大神的co,用起来确实很nice,但是目前看来和express相比,koa不是很活跃,另外middleware这块...

1.后台权限
2.文章分类自定义
3.文章搜索
4.文章留言
5.单页面
6.SEO
7.后台地址自定义
8.标签云
9.友情链接

0.1.0(2013-10-15)
基于express + mongoose,最简单文章发布系统。

1.文章发布
2.文章分类
3.后台管理

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.