CNode

基于koa2+mongodb的轻量级论坛系统

分享
Kk-dylan发布于10 年前最后回复10 年前14 回复7961 浏览0 收藏

最近基于koa2写了个简单的论坛程序,借鉴了cnode的界面设计 untitled1.png

使用了跟cnode同样的编辑器插件 untitled2.png

还有功能正在完善,欢迎大家多提意见! github: https://github.com/k-dylan

查看回复

回复 (14)

I
i5ting#1·10 年前

你这个是基于koa-generator自己加的mongo,要不要试试这个https://github.com/moajs/moa2-mongo,更友好

L
leonzhao#3·10 年前

今天抽空看看,学习下

J
JustforNode#4·10 年前
引用 i5ting你这个是基于koa generator自己加的mongo,要不要试试这个https://github.com/moajs/moa2 mongo,更友好

@i5ting 桑大, koa-generator这个路由规则需要自己一个一个去对应配置,有没有好的解决方法

J
JustforNode#6·10 年前
引用 i5ting@JustforNode https://github.com/moajs/mount koa routes 搞定

@i5ting


	MoaJS Apis Dump

┌──────────────────────────────────────┬────────┬─────────────┐ │ File │ Method │ Path │ ├──────────────────────────────────────┼────────┼─────────────┤ │ /Users/tusm/chatRoom/routes/index.js │ GET │ / │ ├──────────────────────────────────────┼────────┼─────────────┤ │ /Users/tusm/chatRoom/routes/users.js │ GET │ /users/test │ └──────────────────────────────────────┴────────┴─────────────┘ Router { opts: {}, methods: [ 'HEAD', 'OPTIONS', 'GET', 'PUT', 'PATCH', 'POST', 'DELETE' ], params: {}, stack: [] }

路由里为什么会没有那两条规则呢

J
JustforNode#8·10 年前
引用 i5ting@JustforNode 估计是你传的路径不对吧?

@i5ting app.js中,有关路由的都变为了mount(app, __dirname + '/routes', true); koa2能用这个包么

J
JustforNode#10·10 年前
引用 k-dylan@i5ting 好的,感谢桑大推荐,我去瞧瞧

@k-dylan Github上,每个文件的注释好像有点乱

R
rwing#11·10 年前

不错

T
Tmac-15#12·10 年前

楼主的项目很不错,推荐一个基于 MVC,类似 rails 的项目 https://github.com/embbnux/kails

K
k-dylan#14·10 年前
引用 JustforNode@k dylan Github上,每个文件的注释好像有点乱

@JustforNode 恩 我刚开始用git 每次提交时都把备注写在所有修改的文件上面了 所以看起来会有点乱,还在学习当中!!

参与回复
登录后即可参与回复。登录