Skip to content

一个react,react-router4, redux, webpack4,express, mongodb 打造的移动端web app博客系统,用于学习记录和分享

Notifications You must be signed in to change notification settings

wangsen1989/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

目录结构


|-- dist  打包目录
├── src
│   |── client 前端代码
│   |         |
│   |         ├── index.jsx      前端入口文件
│   |         ├── components     基础组件
│   |         ├── container      页面容器组件
│   |         ├── utils          公共方法
│   |         └── redux          状态管理
│   |                 ├── action     Action、ActionType的定义
│   |                 ├── reducer    业务状态处理
│   |
│   |
│   |
|   |── server 后端node代码
│             |
│             ├── index.js       后端入口文件
│             ├── model          数据库模型
│             ├── router         后端路由
|
|
|
└── .babelrc
└── .gitignore
└── index.html 模板
└── package.json
└── README.md
└── webpack.dev.conf.js    
└── webpack.pro.conf.js  

  

需要安装MongoDB后,并执行下面命令

>sudo mongod

首次打开项目,需要安装依赖

>npm install

启动前端

>npm run client

启动后端

用户头像存放地,建在blog项目平级的目录:imageserver目录,此目录不会随项目迭代
若imageserver文件目录不存在,将自动创建目录,
>npm run server

发布编译

>npm run build

About

一个react,react-router4, redux, webpack4,express, mongodb 打造的移动端web app博客系统,用于学习记录和分享

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published