前后端分离的cms。后端采用koa+redis+mongodb(支持自动生成接口文档)。管理台采用dva+ant,用户端采用next.js+redux。
前后端分离的cms建站系统.
迭代中
koa2
mongoose
redis
koa-router
jsonwebtoken
koa-authority
koa-middle-validator
tracer
mocha
supertest
config/setting.js
。mongodb.host = localhost
修改为 mongodb.host = mongodb
,redis.host = localhost
修改为 redis.host = redis
(修改值为 docker-compose.yml 文件内配置的地址)
$ docker-compose up
$ docker exec -it NodeContainerId /bin/bash
$ npm run init
mongodb^v3.0+
, redis^v4.0+
node^v8.0+
config/setting.js
配置$ npm install
安装依赖$ npm start
启动生产环境$ npm run init
初始化数据 (首次安装时执行)src/utils/config.js
文件内 BASE_URL
为后端接口地址$ npm run build
打包$ npm start
生产环境启动react
next.js
express
redux
redux-saga
immutable
isomorphic-unfetch
styled-components
helpers/config.js
文件内 BASE_URL
等配置$ npm run build
打包MIT License
Copyright (c) 2018 mai血过年
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.