smallpath / blog Goto Github PK
View Code? Open in Web Editor NEW前后端分离+服务端渲染的博客系统. 基于Vue2、Koa2、MongoDB、Redis
Home Page: https://smallpath.me
License: Apache License 2.0
前后端分离+服务端渲染的博客系统. 基于Vue2、Koa2、MongoDB、Redis
Home Page: https://smallpath.me
License: Apache License 2.0
Hey
首先感谢作者的努力, 其次感谢大家对此项目的支持 :)
一下有几点意见,不知道意下如何。
Dockerfile 能不能判断一下所在区域 ?上来就是cnpm让在vps跑的人很尴尬
搜索 我想加入Elasticsearch 因为看到了有Mongodb 可以同步数据进Elasticsearch
mongo-connector -m 127.0.0.1:27017 -t 127.0.0.1:9200 -d elastic_doc_manager
图床也可以照顾一下海外的盆友,qiniu 一直让填个手机号并且速度不是很快。我觉得imgur是个不错的选择 :)
前端这里可以考虑加个文件夹 比如默认用Default 然后用户可以自己设计一下主题。
翻了一下作者close的issues 回答都很详细,再次感谢。
有空了 会给这个项目出一份力 :)
然后在没有任何提示的状态下,过了一秒多才加载新的内容.
readme里更新TODO不方便编辑和讨论,现在单独提到issue里,欢迎看到的大家提feature request
front
admin
server
其他
RPC不做了,就算做了效果也没直连数据库好
后端会重构一次,计划支持类似webpack config的插件形式
七牛等敏感配置放到admin上,图形界面比较好
增加一个安装页面,用来在图形界面输入初始参数
增加文档站,使用docsify,可能会放到另外的仓库里
最后是组织,需要给博客取个名字(好难🤣),转移仓库过去
关注大佬这个库也有一两年多了,现在我自己也写了个。wipi
使用 docker build -t blog .
进行docker 打包测试未能成功.
错误提示如下
npm ERR! Linux 4.9.13-moby
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yarn" "pm2"
npm ERR! node v7.7.4
npm ERR! npm v4.1.2
npm ERR! path /usr/local/bin/yarn
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/yarn: node_modules/npm/bin/npm-cli.js symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/yarn
npm ERR! Move it away, and try again.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
The command '/bin/sh -c npm install -g yarn pm2' returned a non-zero code: 1
似乎现在改成了用 yarn 管理的方式
建议 docker 打成直接可运行的包(加上 mongo 和 redis)
还有个问题为什么要用 redis ?
你好,
最近一直打算自己用 Node 写一套这样的博客系统,今天看到你的博客感觉不错,并且开源,于是试了下。以下提出一些建议以及 BUG。
建议:
.config.yml
文件BUG:
front/server/mongo.js
中,这会导致无法启动 front您好,我现在有这样一个需要,因为要做一个很多图片展示类的网站,所以我再后台管理中创建一个基于element ui 上传组件的模板(模板中除了上传组件,还要保存图片的相关信息,即标题,创作的时间,左偏描述,也就是添加其他element ui组件,并绑定相应字段),我上传到七牛以后,并且填写了其他字段以后,我后台的接口是自己编写的,那么我后台的数据库是否应该保存这些字段(包括从七牛返回的url)。如果是这样的话,我想编辑该作品的时候应该怎么办?因为我后台只保存了图片的url,再次跟新的时候,是重写上传到七牛,然后再次更新数据库中的url吗?有没有什么办法,我更新图片的时候,七牛存储中的图片也更新?
你好,我clone front项目下来后,并没有service-worker.js, 也没有cache,是需要修改什么吗?
我想请教下博主,文章页面显示当前路由对应的文章内容的方法(在什么时候获取数据)
ERROR in ./src/client-entry.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/seseemu/Blog/client/front"
我想弄个 VuePress,在谷歌上搜 spa 博客系统 ,就搜到你了,情投意合,一见钟情,看好你哦。
我能干点啥,也想出份力~
比如编辑更新一片文章,用patch请求访问 http://127.0.0.1:3000/api/post/58c95aa85d311c6e5000e3af 这个地址,出现了下面的错误,但是文章其实已经在数据库已经更新好了。
无论是更新(patch),删除(delete)文章,分类,标签等,都出现这种问题。
后台更新文章方法中console.log(result)的提示:
最奇怪的是get请求和post请求都没有问题,只有patch、delete、put请求出现这种问题。
import api from 'create-api'
const prefix = ${api.host}/api
const store = {}
export default store
store.fetch = (model, query) => {
const target = ${prefix}/${model}
return api.axios.get(target, { params: query }).then((response) => {
const result = response.data
return result
})
}
谢谢
ssr的理论基本能明白,但是怎么结合webpack进行搭建,求博主告知
node版本 6.10.2
npm版本 3.10.10
`> @ start E:\实验室\Vuejs\blog\server
node entry.js
E:\实验室\Vuejs\blog\server\node_modules\koa-ratelimit\index.js:40
return async function ratelimit(ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .js] (E:\实验室\Vuejs\blog\server\node_modules\babel-register\lib\node.js
52:7)`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.