Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

This branch is 1 commit ahead, 1315 commits behind cnodejs:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
controllers
libs
models
node_modules
public
routes
views
README.md
app.js
config.default.js
config.js
package.json

README.md

Node Club

介绍

Node Club 是用 Node.jsMongoDb 开发的新型社区软件,界面优雅,功能丰富,小巧迅速,已在Node.js 中文技术社区 CNode 得到应用,但你完全可以用它搭建自己的社区。

安装部署
// install node npm mongodb  
// run mongod
cd nodeclub
npm install ./
cp config.default.js config.js
// modify the config file as yours
node app.js
其它

小量修改了两个依赖模块:node-markdown,express

1.node-markdown/lib/markdown.js allowedTags 添加 embed 标签以支持 flash 视频,allowedAttributes 添加:

embed:'src|quality|width|height|align|allowScriptAccess|allowFullScreen|mode|type'

2.express/node_modules/connect/lib/middleware/csrf.js 添加:

if (req.xhr === true) return next();
if (req.body.user_action && req.body.user_action == 'upload_image') return next();
Something went wrong with that request. Please try again.