Giter VIP home page Giter VIP logo

jsgen's Introduction

{jsGen} 0.8.x【停止更新】

——JavaScript Generated

在线演示及交流社区:AngularJS中文社区

注意,从0.6.x版使用了redis!请先安装redis再启动jsGen!

0.7.x更新说明(开发中)

  1. 调整前端代码框架,使用 bower 和 gulp 管理代码;
  2. 第一次启动需带install参数,用于初始化MongoDB数据库;
  3. 文章编辑页面增加localStorage本地存储;
  4. 线上模式和开发模式的端口统一为3000;
  5. gulp 命令编译本地运行文件,gulp build 编译 CDN 运行文件,其中 CDN 可在 package.json 中定义。

**v0.7.7版 升级了账号密码系统,v0.7.6及之前的版本升级后需更新数据库,请运行 node app.js update-passwd **

简介 (Introduction)

JsGen是用纯JavaScript编写的新一代开源社区网站系统,主要用于搭建SNS类型的专业社区,对客户端AngularJS应用稍作修改也可变成多用户博客系统、论坛或者CMS内容管理系统。

jsGen基于NodeJS编写服务器端程序,提供静态文件响应和REST API接口服务。基于AngularJS编写浏览器端应用,构建交互式网页UI视图。基于MongoDB编写数据存储系统。

安装 (Installation)

系统需要Node.js 0.10.x和mongoDB 2.4.x Windows环境需要Python2.7和VS2012(用于编译node-gyp及其它需要编译的Node.js插件)

Dependencies: Node.js 0.10.x, redis 2.6.12, mongoDB 2.4.x. Windows: Python2.7 and VS2012

config目录下的config.js配置jsGen运行参数,包括监听端口、数据库等,内有说明。

api目录下的install.js是jsGen运行初始化文件,设置管理员初始密码,邮箱,内有说明。

git clone git://github.com/zensh/jsgen.git
cd jsgen
npm install node-gyp    //windows需要先运行此命令,linux不需要
                        //此命令依赖python和vs2012,请参考 https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
npm install             //npm安装依赖模块,请确保依赖模块全部安装好。
                        //windows下请运行 npm install --msvs_version=2012
node app.js install     //启动jsGen之前,初始化MongoDB数据库
node app.js [recache]   //正式启动,可选参数 `recache`,启动时重建redis缓存

npm start               //正常启动,或 `node app.js`

浏览器端输入网址http://localhost/即可访问。

默认的管理员用户名: admin 密码: [email protected]

Default administrator username: admin password: [email protected].

升级 (Update)

git pull origin     //更新jsGen
npm update          //更新Node.js模块

更新 (Changelog)

0.6.x更新说明

  • 2013/11/02 jsGen v0.7.0 调整前端代码结构,使用bower和grunt管理前端代码,增加localStorage。
  • 2013/08/25 jsGen v0.6.x 完全重构Node.js服务器端代码。使用redis作为缓存,使用then.js处理异步任务,重构服务后台代码。
  • 2013/07/29 jsGen v0.5.0 完全重构AngularJS客户端部分,服务器端代码做相应调整。使用pure CSS框架,优化UI,兼容IE8!重写并优化AngularJS代码,添加若干很酷的功能代码,在学习AngularJS的码农不妨看看!
  • 2013/06/01 jsGen v0.3.5 修复若干bug,标签允许空格。
  • 2013/05/26 jsGen v0.3.4 修复管理后台不出现网站设置的bug,管理后台增加邮箱验证设置,默认关闭邮箱验证。
  • 2013/04/25 jsGen v0.3.3 优化浏览器端AngularJS应用。
  • 2013/04/25 jsGen v0.3.2 修复评论编辑器按钮隐藏、输入卡的bug(修改了Markdown.Editor.js),指令前缀改为gen。
  • 2013/04/25 jsGen v0.3.1 浏览器端AngularJS应用自动更新功能。
  • 2013/04/21 jsGen v0.3.0 服务器端增加用户自动登录功能,用户邮箱手动验证。客户端AngularJS应用更新jQuery、Bootstrap至最新版,优化UI。
  • 2013/04/13 jsGen v0.2.11 调整代码,升级AngularJS到1.0.6。
  • 2013/04/13 jsGen v0.2.10 视觉调整。
  • 2013/04/13 jsGen v0.2.9 修复热门文章、热门评论bug,优化代码,暂停使用Cluster。
  • 2013/04/09 jsGen v0.2.8 修复文章编辑器Bug。
  • 2013/04/07 jsGen v0.2.7 修复process.nextTick引起的bug(导致进程退出),优化热门文章统计、热门评论统计、最近更新统计。
  • 2013/04/07 jsGen v0.2.6 优化cacheTL,优化在线用户统计。
  • 2013/04/03 jsGen v0.2.5 修复cacheTL的bug(该Bug可能导致获取后台信息出错)。
  • 2013/04/02 jsGen v0.2.4 完善用户个人主页,显示阅读时间线、更新文章和已阅读文章列表。
  • 2013/04/02 jsGen v0.2.3 修复用户名、用户邮箱大小写漏洞。
  • 2013/04/02 jsGen v0.2.2 修正bug,调整BootStrap视图,使网页视觉效果更明了,可开启Node.js的cluster多进程功能。
  • 2013/04/01 jsGen v0.2.0 大幅优化用户、文章、标签ID相关代码,代码更简洁。
  • 2013/03/31 jsGen v0.1.2 修正bug,添加加载进度条。
  • 2013/03/30 jsGen v0.1.1 修正几个bug,添加forever启动脚本。
  • 2013/03/29 jsGen v0.1.0 测试版发布。

0.5.x更新说明

  1. 兼容IE8。
  2. 放弃Bootstrap 3框架,改用YUI的pure CSS框架,并入部分Bootstrap框架代码,如Modal、Tooltip等。
  3. 使用超酷的Icon:Font-Awesome。
  4. 动画效果,文章列表精简/摘要模式切换。
  5. toastr信息提示条,用于显示错误或成功的请求信息。
  6. 优化响应式设计,手机、平板浏览器可完美访问。
  7. 分离语言机制,可方便切换成其它语言(模板中的语言暂未分离,待完成)。
  8. 完全重构AngularJS代码,各种很酷的功能代码如下。
  9. 全局Loading检测,自动响应loading状态,默认延迟1秒响应loading。可响应AngularJS内部所有http请求,如API请求、html模板请求等。
  10. 全局Error检测,自动过滤错误响应(即进入到controlller中的都是成功响应),包括服务器自身的错误响应如404、500等和服务器定义的错误响应,toastr显示错误信息。
  11. 统一的Validation验证机制,通过genTooltip指令收集并提示无效输入,配合uiValidate可对输入完成任何自定义验证。主要应用于用户登录、用户注册、用户信息修改、发表文章、发表评论,管理后台配置等。
  12. 统一的Dirty检测机制,通过genModal指令和union/intersect函数实现,在发表/编辑文章页面、用户信息配置页面、后台管理页面等修改了数据时,若未保存离开,提示警告信息。
  13. 通用的genPagination指令,效果仿Github,可实现有链接和无链接分页导航。前者生成url,可产生导航记录(浏览器前进后退),具体效果见文章列表。后者通过事件机制实现,不改变url,无导航记录(不能前进后退),具体效果见文章详情页面中的评论分页导航。
  14. 图片预占位异步加载genSrc指令,目前主要用于用户头像。jsGen使用Gavatar,再用户的Gavatar没用加载完成之前,显示本地服务器的占位图像,加载完成后自动替换成用户头像。
  15. 还有其他很酷的代码如定时器触发器timing,自动定位页面元素的anchorScroll(动画效果,方便好使,取代AngularJS内置的$anchorScroll),无须担心digest错误的applyFn(代替$apply),通用的Cookies存储服务myConf

目录和文件 (menus and files)

+api                // 服务器端API目录
    -article.js       // 文章和评论系统API接口
    -collection.js    // 合集系统API接口
    -index.js         // 网站全局信息API接口
    -install.js       // 初始化安装程序
    -message.js       // 站内信息系统API接口
    -tag.js           // 标签系统API接口
    -user.js          // 用户系统API
+config
    -config.js        // 网站配置文件
+dao                // MongoDB数据库访问层
    -articleDao.js    // 文章评论访问接口
    -collectionDao.js // 合集系统访问接口
    -indexDao.js      // 网站全局信息访问接口
    -messageDao.js    // 站内信息系统访问接口
    -mongoDao.js      // MongoDB访问接口
    -tagDao.js        // 标签系统访问接口
    -userDao.js       // 用户系统访问接口
+lib                // 通用工具模块
    -anyBaseConverter.js  // 通用进制转换器
    -cacheLRU.js      // LRU缓存模块
    -cacheTL.js       // TL缓存模块
    -email.js         // SMTP Email模块
    -json.js          // 数据库格式模板
    -msg.js           // 程序信息
    -tools.js         // 核心工具函数
+mylogs             // 日志目录,网站运行后产生内容
+node_modules       // Node.js模块目录,npm install后产生内容
+static             // 浏览器端AngularJS WEB应用
    +css
    +font-awesome     //很酷的web icon
    +img
    +js
        +lib            // AngularJS、jQuery等js模块
        -app.js         // 全局初始化模块
        -controllers.js // 控制器模块
        -directives.js  // 指令模块
        -filters.js     // 过滤器模块
        -locale_zh-cn.js// 语言包
        -router.js      // 路由模块
        -services.js    // 通用服务模块
        -tools.js       // 工具函数模块
    +md               // MarkDown文档
    +tpl              // html模板
    -favicon.ico
    -index.html       // AngularJS WEB应用入口文件
+tmp                // 缓存目录
    +static           // 压缩js、css缓存目录,必须
    +tpl              // html模板文件缓存目录
    +upload           // 上传文件缓存目录
-app.js             // Node.js入口文件
-package.json       // jsGen信息文件

特点 (Features)

  1. 前沿的WEB技术,前所未有的网站构架形态,前端与后端完全分离,前端由 AngularJS 生成视图,后端由 Node.js 提供REST API数据接口和静态文件服务。只需改动前端AngularJS应用视图形态,即可变成论坛、多用户博客、内容管理系统等。

  2. 用户数据、文章评论数据、标签数据、分页缓存数据、用户操作间隔限时等都使用 LRU缓存 ,降低数据库IO操作,同时保证同步更新数据。

  3. 前后端利用 json 数据包进行通信。文章、评论采用 Markdown 格式编辑、存储,支持GitHub的GFM,AngularJS应用将Markdown解析成HTML DOM。

  4. 用户帐号系统,关注(follow)用户/粉丝、邮箱验证激活、邮箱重置密码、SHA256加密安全登录、登录失败5次锁定/邮箱解锁、用户标签、用户积分、用户权限等级、用户阅读时间线等功能。用户主页只展现感兴趣的最新文章(关注标签、关注作者的文章)。

  5. 文章/评论系统,文章、评论使用统一数据结构,均可被评论、支持、反对、标记(mark,即收藏),当评论达到一定条件(精彩评论)可自动提升为文章(进入文章列表展现,类branch功能),同样文章达到一定条件即可自动推荐。自动实时统计文章、评论热度,自动生成最新文章列表、一周内最热文章列表、一周内最热评论列表、最近更新文章列表。强大的文章、评论列表分页导航功能,缓存每个用户的分页导航浏览记录。

  6. 标签系统,文章和用户均可加标签,可设置文章、用户标签数量上限。用户通过标签设置自己关注话题,文章通过标签形成分类。标签在用户设置标签或文章设置标签时自动生成。自动展现热门标签。

  7. 文章合集系统,作者、编辑、管理员可将一系列相关文章组成合集,形成有章节大纲目录的在线电子书形态,可用于教程文档、主题合集甚至小说连载等。(待完成)

  8. 站内短信系统,提供在文章、评论中 @用户的功能,重要短信发送邮件通知功能等。(待完成)

  9. 后台管理系统,网站参数设置、缓存设置、网站运行信息、文章、评论、用户、标签、合集、站内短信等管理。

  10. Robot SEO系统,由于AngularJS网页内容在客户端动态生成,对搜索引擎robot天生免疫。jsGen针对robot访问,在服务器端动态生成robot专属html页面。搜索引擎Robot名称可在管理后台添加。

感谢 (Acknowledgments)

jsGen 是为AngularJS中文社区开发的网站系统,测试版已经上线,还请大家温柔测试,积极反馈Bug。

非常感谢GitHub和在GitHub上贡献开源代码的Node.jsAngularJSMongoDBBootstrap以及其他JavsScript插件的伟大码农们,还有国内码农贡献的rrestjsmongoskinxss等。jsGen也是开源免费。

MIT 协议

jsgen's People

Contributors

18601673727 avatar ginus avatar lealife avatar zensh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsgen's Issues

安装不成功,报错如下

/usr/local/node/bin/node app.js install

rrestjs process 17871 Checking config file starting...
check config file error: TypeError: Object # has no method 'upyun'

rrestjs process 17871 Config file checking complete, errors:0/73, warns:0/73

= Please ensure that you set the default write concern for the database by setting =
= one of the options =
= =
= w: (value of > -1 or the string 'majority'), where < 1 means =
= no write acknowlegement =
= journal: true/false, wait for flush to journal before acknowlegement =
= fsync: true/false, wait for flush to file system before acknowlegement =
= =
= For backward compatibility safe is still supported and =
= allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}] =
= the default value is false which means the driver receives does not =
= return the information of the success/error of the insert/update/remove =
= =
= ex: new Db(new Server('localhost', 27017), {safe:false}) =
= =
= http://www.mongodb.org/display/DOCS/getLastError+Command =
= =
= The default of no acknowlegement will change in the very near future =
= =

= This message will disappear when the default safe is set on the driver Db =

Connect to Redis...
Redis connected: 127.0.0.1:6379, DB: 1
Redis connected: 127.0.0.1:6379, DB: 2
Redis connected: 127.0.0.1:6379, DB: 3

怎么弄

TypeError: Object #<Object> has no method 'upyun' issue

Using osx 1.9 to start jsgen, failed with following message.

rrestjs process 6301 Checking config file starting...
check config file error: TypeError: Object # has no method 'upyun'
rrestjs process 6301 Config file checking complete, errors:0/73, warns:0/73

Anyway to fix that?

初始化报错

我在Mac OSX上运行。
npm install
报错:
gyp: /Users/zhf/.node-gyp/0.10.12/common.gypi not found (cwd: /Users/zhf/Documents/workspace/github/jsgen/node_modules/rrestjs/node_modules/now/node_modules/node-proxy) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.4.1
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/zhf/Documents/workspace/github/jsgen/node_modules/rrestjs/node_modules/now/node_modules/node-proxy
gyp ERR! node -v v0.10.12
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.8.7.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-0.2.1.tgz
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/bson/-/bson-0.1.3.tgz
npm http 304 https://registry.npmjs.org/wordwrap
npm ERR! not ok code 0

请问是什么原因?

启动不了,求解

清哥,jsgen安装后。启动不了。
node app.js install
node app.js
npm start
这3条命令都导致以下结果

rrestjs process 17290 Checking config file starting...
check config file error: TypeError: Object #<Object> has no method 'upyun'
rrestjs process 17290 Config file checking complete, errors:0/73, warns:0/73
Connect to Redis...
Redis connected: 127.0.0.1:6379, DB: 1
Redis connected: 127.0.0.1:6379, DB: 2
Redis connected: 127.0.0.1:6379, DB: 3

貌似卡在Redis了?还是什么情况,求助

和最新的mongoDB不兼容

启动时会报错:

= Please ensure that you set the default write concern for the database by setting =
= one of the options =
= =
= w: (value of > -1 or the string 'majority'), where < 1 means =
= no write acknowlegement =
= journal: true/false, wait for flush to journal before acknowlegement =
= fsync: true/false, wait for flush to file system before acknowlegement =
= =
= For backward compatibility safe is still supported and =
= allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}] =
= the default value is false which means the driver receives does not =
= return the information of the success/error of the insert/update/remove =
= =
= ex: new Db(new Server('localhost', 27017), {safe:false}) =
= =
= http://www.mongodb.org/display/DOCS/getLastError+Command =
= =
= The default of no acknowlegement will change in the very near future =
= =

= This message will disappear when the default safe is set on the driver Db =

静态文件和浏览器缓存

修改了static下的tpl中的html,grunt编译之后,需要浏览器清理缓存,才能显示正常。不知道是我设置的不对,还是就是要这样的。

浏览器显示为空白

安装完成之后,浏览器闪现了一下图标文字然后就什么都没有了,一片空白。

terminal控制台也没有任何异常输出。

环境:Mac OS X 10.8

V 0.3 安装出错

2530 error [email protected] install: (node-gyp rebuild 2> builderror.log) || (exit 0)
2530 error spawn ENOENT
2531 error Failed at the [email protected] install script.
2531 error This is most likely a problem with the bson package,
2531 error not with npm itself.
2531 error Tell the author that this fails on your system:
2531 error (node-gyp rebuild 2> builderror.log) || (exit 0)
2531 error You can get their info via:
2531 error npm owner ls bson
2531 error There is likely additional logging output above.
2532 error System Windows_NT 6.2.9200
2533 error command "D:\Softwares\Nodejs\node.exe" "D:\Softwares\Nodejs\node_modules\npm\bin\npm-cli.js" "install"
2534 error cwd D:\jsgen
2535 error node -v v0.10.4
2536 error npm -v 1.2.18
2537 error syscall spawn
2538 error code ELIFECYCLE
2539 error errno ENOENT

系统:
Win8 64bit
vs 2012
python 2.7
nodejs v 0.10.4

网页加载伪假死现象

首先对新网站以及网站使用的新技术赞一个

废话完了

  • 网站使用的是json加载网页信息,通过前台的url传回后台,后台根据相应的请求生成相应的json打包后给前台加载。
  • 问题来了,在网速情况好的前提下,的确没有任何网页重新加载所带来的延迟。但是网速不好的前提下,如果动态加载json信息,就会在加载的过程中网页无反应,看起来像假死一样。
  • 解决办法:建议和其他网站加载json时一样,在加载的过程中插入一个加载过程的相应插件。

报告一个严重的Bug

  1. 进入zensh/jsgen,发现的却是thenjs的介绍
  2. npm install jsgen后,没有与jsgen任何相关的文件,这是肿么了?
  3. 安装jsgen得到的却是thenjs。请问作者能解释下么?

windows下无法启动(win7 + node0.8.22 + vs2012 + python2.7 )

C:\Users\psyxy\Desktop\jsgen-dev>npm start

[email protected] start C:\Users\psyxy\Desktop\jsgen-dev
node app.js

rrestjs process 10544 Checking config file starting...
baseDir must be a valid url, for example: /usr/local/nodejs/app
rrestjs process 10544 Config file checking complete, errors:1/72, warns:0/72
{ [Error: Problem reading log4js config { appenders:
[ { category: 'angularjs.cn',
type: 'logLevelFilter',
level: 'error',
appender: [Object],
makers: [Object] } ] }. Error was "Cannot find module 'file'" (Error: Can
not find module 'file'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.loadAppender (C:\Users\psyxy\Desktop\jsgen-dev\node_modules\rrestj
s\node_modules\log4js\lib\log4js.js:290:26)
at Object.configure (C:\Users\psyxy\Desktop\jsgen-dev\node_modules\rrestjs\n
ode_modules\log4js\lib\appenders\logLevelFilter.js:14:12)
at C:\Users\psyxy\Desktop\jsgen-dev\node_modules\rrestjs\node_modules\log4js
\lib\log4js.js:148:59
at Array.forEach (native)
at configureAppenders (C:\Users\psyxy\Desktop\jsgen-dev\node_modules\rrestjs
\node_modules\log4js\lib\log4js.js:144:22)
at configureOnceOff (C:\Users\psyxy\Desktop\jsgen-dev\node_modules\rrestjs\n
ode_modules\log4js\lib\log4js.js:196:13))] domain_thrown: true }

部署最新版不能启动

项目在说明中写到‘从0.6.x版使用了redis’,但app.js在启动的时候,error中显示'Failed to connect to [127.0.0.1:24017]'. 请问最新版的项目是实用redis彻底替换了mongoDB还是说即便安装的redis仍旧需要安装mongoDB才能运行? 谢谢

运行失败了,错误信息如下内容,谢谢

info using [email protected]
info using [email protected]
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
verbose caching /data/jsgen/package.json
verbose loadDefaults [email protected]
verbose run-script [ 'prestart', 'start', 'poststart' ]
info prestart [email protected]
info start [email protected]
verbose unsafe-perm in lifecycle true
silly exec sh "-c" "node app.js"
silly spawning [ 'sh', [ '-c', 'node app.js' ], '/data/jsgen' ]
info [email protected] Failed to exec start script
ERR! [email protected] start: node app.js
ERR! sh "-c" "node app.js" failed with 1
ERR!
ERR! Failed at the [email protected] start script.
ERR! This is most likely a problem with the jsGen package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node app.js
ERR! You can get their info via:
ERR! npm owner ls jsGen
ERR! There is likely additional logging output above.
ERR!
ERR! System Linux 3.2.0-40-generic
ERR! command "node" "/usr/bin/npm" "start"
ERR! cwd /data/jsgen
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! code ELIFECYCLE
ERR! message [email protected] start: node app.js
ERR! message sh "-c" "node app.js" failed with 1
ERR! errno {}
verbose exit [ 1, true ]

页面的各个位置的头像整体偏大

页面各个位置的头像整体偏大,与其他地方不太协调。 特别是顶部右侧的头像,直接与上下接触。建议将图片高宽度减小,加上5px的边距。

另,页面整体采用bootstrap风格,按钮及图标都有加入4px左右的圆角,头像部分也建议加进去。整体就不会那么生硬了。

English translation of your readme - encase this would help. :)

Online demonstration and Exchange community: AngularJS.cn

Note that from version 0.6.x uses the REDIS!

0.6.x updates description

  1. the original memory cache to REDIS cache, so that jsGen can run multiple processes, multiple computer.
  2. then.js processing asynchronous tasks asynchronous task code completely rewritten, code logic clearer, easier to extend.
  3. fix some Bug.
  4. suspended animation.

version 0.7.0 development goals

Content search, news articles and comment management system, the background.

Introduction

JsGen is a next-generation open source community website system written in pure JavaScript, mainly used for building professional SNS type community, client application AngularJS minor modifications can also be turned into a multi-user blog system, discussion forum or CMS content management system.

JsGen using NodeJS to write server-side program, provides static file response and service REST API interfaces. Based on AngularJS doing browser-side application, build interactive Web UI views. MongoDB write data storage system.

installation

Systems need to be mongoDB 2.4.x and Node.js 0.10.x, Windows environment needs to be Python2.7 and VS2012 (for compiling Node.js plug-in node-gyp and it needs to be compiled)

Dependencies: Node.js 0.10.x, redis 2.6.12, mongoDB 2.4.x. Windows: Python2.7 and VS2012

Config.js in the "config" directory configuration jsGen operating parameters, port, database including, a description.

install.js in the "api" directory is jsGen to run the initialization files, set the initial passwords administrator mailbox, with instructions.

git clone git://github.com/zensh/jsgen.git

cd jsgen

npm install node-gyp //Windows you need to run this command, Linux does not need
                     //This command depend on Python and vs2012, please refer to https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup

npm install  //Windows runs under npm install --msvs_version=2012

npm start //boot jsgen (or node app.js)

JsGen Github source code includes two branches: master and dev, default master branch:

  1. Master merge branch after compression of Javascript code, used to running on the line, access ports for 80;
  2. Dev branch for the development branch, can be used for studying, access ports to 3000.

Browser-side enter the URL http://localhost/ will access master.

The default administrator username: admin password: [email protected].

upgrade

git pull origin //update jsGen

npm update //update Node.js module

npm start //reset jsGen

Update (Changelog)

  • 2013/08/25 jsGen v0.6.0 PR Node.js server side code. Using REDIS as cache using then.js process asynchronous tasks.
  • 2013/07/29 jsGen AngularJS v0.5.0 refactoring client part, server-side code is adjusted accordingly. Using a pure CSS framework, optimized UI, compatible with IE8! Rewrite and optimize AngularJS code, add a number of cool features code, AngularJS code: farmers may wish to look at!
  • 2013/06/01 jsGen a v0.3.5 fixes some bug, tags allow spaces.
  • 2013/05/26 jsGen v0.3.4 fix bug in admin site settings does not appear, manage increasing email authentication settings, turn off email validation by default.
  • 2013/04/25 jsGen v0.3.3 optimized browser-side application AngularJS.
  • 2013/04/25 jsGen v0.3.2 Repair button to hide the comments Editor, enter the bug card (modifying Markdown.Editor.js), instruction prefixes to Gen.
  • 2013/04/25 jsGen v0.3.1 browser-side application AngularJS the Automatic Updates feature.
  • 2013/04/21 jsGen v0.3.0 user auto-login feature on the server side, manually verify that the user's mailbox. Update jQuery client application AngularJS, Bootstrap to the latest version, optimized UI.
  • 2013/04/13 jsGen v0.2.11 adjustment codes, upgrade AngularJS to 1.6.
  • 2013/04/13 jsGen v0.2.10 Adaptation.
  • 2013/04/13 jsGen v0.2.9 bug repair featured articles, featured reviews, optimize code, suspended Cluster.
  • 2013/04/09 jsGen v0.2.8 repair article editor Bug.
  • 2013/04/07 jsGen v0.2.7 fix bug that caused process.nextTick (process exited), optimize the popular articles and statistics, new popular review statistics, and statistics.
  • 2013/04/07 jsGen cacheTL v0.2.6 Optimization, optimize online user statistics.
  • 2013/04/03 jsGen v0.2.5 fix cacheTL bug (the Bug may cause error getting background information).
  • 2013/04/02 perfection jsGen v0.2.4 users personal page, read the timeline display, update and read articles lists.
  • 2013/04/02 jsGen v0.2.3 fix user name, user email vulnerabilities.
  • 2013/04/02 jsGen v0.2.2 fixed bug, adjust the BootStrap view, make Web pages visually more clear, open cluster of Node.js multi-process capabilities.
  • 2013/04/01 jsGen v0.2.0 substantially optimize user, article, label, ID code, code more concise.
  • 2013/03/31 jsGen v0.1.2 fixed bug, add a loading progress bar.
  • 2013/03/30 jsGen v0.1.1 fixed bug, add forever to start script.
  • 2013/03/29 jsGen v0.1.0 beta release.

0.5.x update instructions

  1. compatible with IE8.
  2. waiver Bootstrap 3 framework, instead of pure YUI CSS framework for inclusion into the partial framework Bootstrap code, such as Modal, Tooltip, etc.
  3. use cool Icon:Font-Awesome.
  4. animation, streamline the article list/summary mode switch.
  5. toastr message, is used to display an error or success to request information.
  6. optimize design by response, cell phones, flat-screen Viewer with perfect access.
  7. separation of language mechanisms, can be easily switched to another language (separation of template languages not yet completed).
  8. PR AngularJS code, all kinds of cool feature code is as follows.
  9. global Loading detection, automatic response to loading, loading default delay of 1 second response. Responds to all HTTP requests within the AngularJS, such as API requests, requests for HTML templates.
  10. Global Error detection, automatic filtering error response (that is, into controlller is a successful response), including the server itself of error responses like 404, 500, etc and defined error response from the server, toastr displays an error message.
  11. the integrated Validation validation mechanism, collected through the genTooltip instructions and prompts the invalid input, combined with uiValidate on enter to complete any custom validation. Mainly used in user login, user registration, user modifications, publish articles, comments, Admin Configuration.
  12. uniform Dirty detecting mechanism, and the Union/intersect function with the genModal directive to achieve, in the publish/edit post page configuration page, admin pages, user information, such as when data is modified, if not saved to leave, prompting warning message.
  13. common genPagination directives, the effect is like Github, link and no link page navigation can be achieved. The former generate a URL, can produce record navigation (browser forward backward), specific results see article list. Which event mechanism, do not change the URL without navigating records (can't go back), specific effect details see article comment page in the page navigation.
  14. the picture placeholder asynchronous load genSrc directive, currently primarily used for user profile picture. JsGen use the Gavatar, user Gavatar useless until loading is completed, the placeholder image displays local server, replace user avatar automatically after loading is complete.
  15. There are other cool codes such as timer trigger timing, automatic positioning page elements anchorScroll (animation effects to facilitate work, replacing the built-in $anchorScroll AngularJS), do not have to worry about Digest error applyFn (instead of $apply), universal myConf Cookies to store service

****_The original file_

Online demonstration and Exchange community: AngularJS online community

 Note that from version 0.6.x uses the REDIS!

 0.6.x updates description

  1. the original memory cache to REDIS cache, so that jsGen can run multiple processes, multiple computer.
  2. then.js processing asynchronous tasks asynchronous task code completely rewritten, code logic clearer, easier to extend.
  3. fix some Bug.
  4. suspended animation.

 version 0.7.0 development goals

Content search, news articles and comment management system, the background.

 Introduction (Introduction)

JsGen is a next-generation open source community website system written in pure JavaScript, mainly used for building professional SNS type community, client application AngularJS minor modifications can also be turned into a multi-user blog system, discussion forum or CMS content management system.

JsGen using NodeJS to write server-side program, provides static file response and service REST API interfaces. Based on AngularJS doing browser-side application, build interactive Web UI views. MongoDB write data storage system.

JsGen is a next generation,free, open source web software that you can generate a powerful website, such as blog, forum, etc. It is coded by pure JavaScript, based on Node.js, AngularJS, MongoDB.

Node.js provide REST API server, AngularJS web app gets data from server and generate the view to user.

 installation (Installation)

Systems need to be mongoDB and Node.js 0.10.x 2.4.x Windows environment needs to be Python2.7 and VS2012 (for compiling Node.js plug-in node-gyp and it needs to be compiled)

Dependencies: Node.js 0.10.x, redis 2.6.12, mongoDB 2.4.x. Windows: Python2.7 and VS2012

Config.js configuration jsGen operating parameters in the config directory, port, database including, a description.

API install.js is jsGen to run the initialization files in directory, set the initial passwords administrator mailbox, with instructions.
git clone git://github.com/zensh/jsgen.git
cd jsgen
NPM install node-gyp //Windows you need to run this command, Linux does not need
//This command depend on Python and vs2012, please refer to https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
NPM install //NPM dependent modules installed, make sure that all dependent modules installed.
//Windows runs under NPM install--msvs_version=2012
NPM start //boot jsgen (or node app.js)

JsGen Github source code includes two branches: master and dev, default master branch:
1.
Master merge branch after compression of Javascript code, used to running on the line, access ports for 80;

Dev branch for the development branch, can be used for studying, access ports to 3000.

Browser-side enter the URL http://localhost/will access.

The default administrator username: admin password: [email protected].

Default administrator username: admin password: [email protected].

 upgrade (Update)
Git pull //update jsGen
NPM update //update Node.js module
NPM start //reset jsGen

 Update (Changelog)
· 2013/08/25 jsGen v0.6.0 PR Node.js server side code. Using REDIS as cache using then.js process asynchronous tasks.
· 2013/07/29 jsGen AngularJS v0.5.0 refactoring client part, server-side code is adjusted accordingly. Using a pure CSS framework, optimized UI, compatible with IE8! Rewrite and optimize AngularJS code, add a number of cool features code, AngularJS code: farmers may wish to look at!
· 2013/06/01 jsGen a v0.3.5 fixes some bug, tags allow spaces.
· 2013/05/26 jsGen v0.3.4 fix bug in admin site settings does not appear, manage increasing email authentication settings, turn off email validation by default.
· 2013/04/25 jsGen v0.3.3 optimized browser-side application AngularJS.
· 2013/04/25 jsGen v0.3.2 Repair button to hide the comments Editor, enter the bug card (modifying Markdown.Editor.js), instruction prefixes to Gen.
· 2013/04/25 jsGen v0.3.1 browser-side application AngularJS the Automatic Updates feature.
· 2013/04/21 jsGen v0.3.0 user auto-login feature on the server side, manually verify that the user's mailbox. Update jQuery client application AngularJS, Bootstrap to the latest version, optimized UI.
· 2013/04/13 jsGen v0.2.11 adjustment codes, upgrade AngularJS to 1.6.
· 2013/04/13 jsGen v0.2.10 Adaptation.
· 2013/04/13 jsGen v0.2.9 bug repair featured articles, featured reviews, optimize code, suspended Cluster.
· 2013/04/09 jsGen v0.2.8 repair article editor Bug.
· 2013/04/07 jsGen v0.2.7 fix bug that caused process.nextTick (process exited), optimize the popular articles and statistics, new popular review statistics, and statistics.
· 2013/04/07 jsGen cacheTL v0.2.6 Optimization, optimize online user statistics.
· 2013/04/03 jsGen v0.2.5 fix cacheTL bug (the Bug may cause error getting background information).
· 2013/04/02 perfection jsGen v0.2.4 users personal page, read the timeline display, update and read articles lists.
· 2013/04/02 jsGen v0.2.3 fix user name, user email vulnerabilities.
· 2013/04/02 jsGen v0.2.2 fixed bug, adjust the BootStrap view, make Web pages visually more clear, open cluster of Node.js multi-process capabilities.
· 2013/04/01 jsGen v0.2.0 substantially optimize user, article, label, ID code, code more concise.
· 2013/03/31 jsGen v0.1.2 fixed bug, add a loading progress bar.
· 2013/03/30 jsGen v0.1.1 fixed bug, add forever to start script.
· 2013/03/29 jsGen v0.1.0 beta release.

 0.5.x update instructions

  1. compatible with IE8.
  2. waiver Bootstrap 3 framework, instead of pure YUI CSS framework for inclusion into the partial framework Bootstrap code, such as Modal, Tooltip, etc.
  3. use cool Icon:Font-Awesome.
  4. animation, streamline the article list/summary mode switch.
    5.toastr message, is used to display an error or success to request information.
  5. optimize design by response, cell phones, flat-screen Viewer with perfect access.
  6. separation of language mechanisms, can be easily switched to another language (separation of template languages not yet completed).
  7. PR AngularJS code, all kinds of cool feature code is as follows.
  8. global Loading detection, automatic response to loading, loading default delay of 1 second response. Responds to all HTTP requests within the AngularJS, such as API requests, requests for HTML templates.
  9. Global Error detection, automatic filtering error response (that is, into controlller is a successful response), including the server itself of error responses like 404, 500, etc and defined error response from the server, toastr displays an error message.
  10. the integrated Validation validation mechanism, collected through the genTooltip instructions and prompts the invalid input, combined with uiValidate on enter to complete any custom validation. Mainly used in user login, user registration, user modifications, publish articles, comments, Admin Configuration.
  11. uniform Dirty detecting mechanism, and the Union/intersect function with the genModal directive to achieve, in the publish/edit post page configuration page, admin pages, user information, such as when data is modified, if not saved to leave, prompting warning message.
  12. common genPagination directives, the effect is like Github, link and no link page navigation can be achieved. The former generate a URL, can produce record navigation (browser forward backward), specific results see article list. Which event mechanism, do not change the URL without navigating records (can't go back), specific effect details see article comment page in the page navigation.
  13. the picture placeholder asynchronous load genSrc directive, currently primarily used for user profile picture. JsGen use the Gavatar, user Gavatar useless until loading is completed, the placeholder image displays local server, replace user avatar automatically after loading is complete.
  14. There are other cool codes such as timer trigger timing, automatic positioning page elements anchorScroll (animation effects to facilitate work, replacing the built-in $anchorScroll AngularJS), do not have to worry about Digest error applyFn (instead of $apply), universal myConf Cookies to store service

 directories and files (menus and files)
+API //server-side API directory
-Article.js //articles and reviews systems API interface
-Collection.js //collection system API interface
-Index.js //website includes information on the global API interface
-Install.js//to initialize the installation program
-Message.js //station information system API interface
-Tag.js //labeling system API interface
-User.js //user system API
+config
-Config.js //website profile
+Dao //MongoDB database access layer
-ArticleDao.js //article reviews provider
-CollectionDao.js //collection systems provider
-IndexDao.js //Web site, global information provider
-MessageDao.js //station information system provider
-MongoDao.js //MongoDB provider
-TagDao.js //labeling systems provider
-UserDao.js //user system access interface
+Lib//universal tool module
-AnyBaseConverter.js //universal binary converter
-CacheLRU.js //LRU cache module
-CacheTL.js //TL cache module
-Email.js //SMTP Email module
-JSON.js //database format templates
-Msg.js //program information
-tools.js

xmlbuilder无法下载

xmlbuilder无法下载 ,新版的xmlbuilder是coffee的直接下载到本地,然后放到项目根本跑不起来

ImportError: No module named gyp

D:\jsgen\node_modules\mongoskin\node_modules\mongodb\node_modules\bson>node "D:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Traceback (most recent call last):
  File "D:\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp", line 15, in <module>
    import gyp
ImportError: No module named gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:415:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:786:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd D:\jsgen\node_modules\rrestjs\node_modules\now\node_modules\node-proxy
gyp ERR! node -v v0.10.3
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm http 304 http://registry.npmjs.vitecho.com/redis/0.6.7
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'D:\jsgen\node_modules\rrestjs\node_modules'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir 'D:\jsgen\node_modules\rrestjs\node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: 'D:\\jsgen\\node_modules\\rrestjs\\node_modules' }
npm ERR! [email protected] install: `node-gyp configure build`
npm ERR! `cmd "/c" "node-gyp configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-proxy
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd D:\jsgen
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! code ELIFECYCLE
npm http GET http://registry.npmjs.vitecho.com/uglify-js/1.0.6
npm http GET http://registry.npmjs.vitecho.com/xmlhttprequest/1.2.2
npm http GET http://registry.npmjs.vitecho.com/websocket-client/1.0.0
npm http 304 http://registry.npmjs.vitecho.com/uglify-js/1.0.6
npm http 304 http://registry.npmjs.vitecho.com/xmlhttprequest/1.2.2
npm http 304 http://registry.npmjs.vitecho.com/websocket-client/1.0.0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\jsgen\npm-debug.log
npm ERR! not ok code 0

npm install过程报错,且启动后无进程监听3000端口,无法访问

系统环境:CentOS 6.3 x64 Mini
安装npm、redis、mongodb,均为默认安装;

在npm install 过程中报了两个错
npm WARN engine [email protected]: wanted: {"node":">= 0.4.x < 0.7.0"} (current: {"node":"v0.10.21","npm":"1.3.6"})

npm http GET https://registry.npmjs.org/sigmund/-/sigmund-1.0.0.tgz
../src/node-proxy.cc: In static member function ‘static v8::Handle v8::NodeProxy::GetNamedProperty(v8::Local, const v8::AccessorInfo&)’:

../src/node-proxy.cc:816: 警告:在有返回值的函数中,控制流程到达函数尾

之后启动时提示
check config file error: TypeError: Object # has no method 'upyun'
刚刚明白,这是使用了又拍云存储的缘故。
rrestjs process 2674 Config file checking complete, errors:0/73, warns:0/73

Redis正常连接,netstat查看无进程监听3000端口,无法访问。
我是内网环境,估计没办法使用.

npm start的时候报错

rrestjs process 2753 Checking config file starting...
rrestjs process 2753 Config file checking complete, errors:0/72, warns:0/72

/Users/gxb/softlight/Project/Git/jsgen/app.js:18
jsGen.serverlog.error(err);
^
TypeError: Cannot call method 'error' of undefined
at Domain. (/Users/gxb/softlight/Project/Git/jsgen/app.js:18:21)
at Domain.EventEmitter.emit (events.js:93:17)
at process.uncaughtHandler (domain.js:61:20)
at process.EventEmitter.emit (events.js:123:20)
npm ERR! [email protected] start: node app.js
npm ERR! sh "-c" "node app.js" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the jsgen package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls jsgen
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/gxb/softlight/Project/Git/jsgen
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/gxb/softlight/Project/Git/jsgen/npm-debug.log
npm ERR! not ok code 0

在Mac Os上启动的时候报错

启动报错

node app.js install

rrestjs process 25639 Checking config file starting...
check config file error: TypeError: Object # has no method 'upyun'
rrestjs process 25639 Config file checking complete, errors:0/73, warns:0/73
[Error: URL must be in the format mongodb://user:pass@host:port/dbname]

找了很久,没有这方面说明,应该如何处理?

The pagination loading bar can't be visible.

不知道有没有发现,在点击下一页的时候是不会出现loading bar的.
我查看了代码,在jsgen / static / js / controllers.js 34行:

34 jsGen.rootScope.global.loading = true;
35 var result = restPath.get(doc, function () {
36 jsGen.rootScope.global.loading = false;

34行开启了loading,回调完成后关闭.
但是没有效果. 就算是把36行注释掉,loading bar一样不会出现.why?

几个问题

缓存清除

请问如何清除缓存,例如图片缓存.例如我把logo图片换掉了,但是缓存还在,显示不正确,请问如何清除?

css,js资源路经

为什么我把资源路经改为本地的,就不起作用了?例如
把以下的改动

    <link rel="stylesheet" href="http://cdn.angularjs.cn/{{_css/jsgen.min.css_}}">
    <link rel="stylesheet" href="http://cdn.angularjs.cn/{{_css/font-awesome.min.css_}}">

改为如下的,就提升找不到

    <link rel="stylesheet" href="/static/src/css/jsgen.min.css">

Redis MongDB 如何配置, 在文档中没有提及

...汗,, 还不会配置 Redis, 现在是在 OS X 下想尝试运行 jsGen
通过 brewlaunchctl 安装运行的 MongoDB 和 Redis
dev 分支的代码, 启动以后 3000 端口能访问, 但提示有警告, log 是这样的

➤➤ node -v
v0.10.15
➤➤ npm start

> [email protected] start /Users/chen/Code/jsgen
> node app.js

rrestjs process 53315 Checking config file starting...
rrestjs process 53315 Config file checking complete, errors:0/72, warns:0/72
========================================================================================
=  Please ensure that you set the default write concern for the database by setting    =
=   one of the options                                                                 =
=                                                                                      =
=     w: (value of > -1 or the string 'majority'), where < 1 means                     =
=        no write acknowlegement                                                       =
=     journal: true/false, wait for flush to journal before acknowlegement             =
=     fsync: true/false, wait for flush to file system before acknowlegement           =
=                                                                                      =
=  For backward compatibility safe is still supported and                              =
=   allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]      =
=   the default value is false which means the driver receives does not                =
=   return the information of the success/error of the insert/update/remove            =
=                                                                                      =
=   ex: new Db(new Server('localhost', 27017), {safe:false})                           =
=                                                                                      =
=   http://www.mongodb.org/display/DOCS/getLastError+Command                           =
=                                                                                      =
=  The default of no acknowlegement will change in the very near future                =
=                                                                                      =
=  This message will disappear when the default safe is set on the driver Db           =
========================================================================================
Redis connected: 127.0.0.1:6379, DB: 1
Redis connected: 127.0.0.1:6379, DB: 2
Redis connected: 127.0.0.1:6379, DB: 3
redis cache rebuild success!
jsGen start!

项目搭建起来以后进入用户管理报错

进入默认的管理员账号:admin [email protected]以后
进入“我的主页”,报错。
后台报错:
RangeError:Maximum call stack size exceeded
domain:
{domain:null
_events: {error:[Function]},
_maxListeners:10,
members:]},
domainThrown:true}
61061:GET : api,user,index,index

jsgen npm & bower install

hi guys, after I clone your project to my computer, I use npm install, but it always has warns about 'No repository field.' and the dependency never be installed,
and the bower components couldn't download too, could anyone tell why, thanks.

node app.js --dev之后localhost:3000报错

作者你好!
版本是刚刚clone的,一切都是全新安装,node app.js 正常
但杀掉进程再输入node app.js --dev之后,打开浏览器就有报错了,而且网站内容一片空白
image


另外 node app.js install 之后 打开localhost:3000 会在屏幕中间无限菊花 这个是BUG吗?

安装时报错,缺少VCBuild.exe

jsgen\node_modules\rrestjs\node_modules\now\node_modules\node-proxy\build\binding.sln : error MSB3411: 未能加载 Vis ual C++ 组件“VCBuild.exe”。如果未安装该组件,请执行下列操作之一: 1) 安装 Microsoft Windows SDK for Windows Server 2008 和 .NET Framework 3.5;或 2) 安装 Microsoft Visual Studio 2008。

VS2008太老了,我选择安装Windows SDK http://www.microsoft.com/en-us/download/details.aspx?id=11310 但安装完成后并没有VCBuild.exe,再次执行npm install --msvs_version=2012 依然报错。

"node app.js install" error (MacOS)

rrestjs process 1875 Checking config file starting...
check config file error: TypeError: Object # has no method 'upyun'
rrestjs process 1875 Config file checking complete, errors:0/73, warns:0/73
Connect to Redis...
node_redis: Couldn't get Redis connection after 8415ms.
node_redis: Couldn't get Redis connection after 8415ms.
node_redis: Couldn't get Redis connection after 8415ms.
node_redis: Couldn't get Redis connection after 8415ms.

Linux 3.2.6 npm start报错 (ubuntu10.04 32bit)

root@mo-dev:~/jsgen# npm start

[email protected] start /root/jsgen
node app.js

rrestjs process 2256 Checking config file starting...
rrestjs process 2256 Config file checking complete, errors:0/72, warns:0/72

/root/jsgen/app.js:11
jsGen.errlog.error(err);
^
TypeError: Cannot call method 'error' of undefined
at Domain. (/root/jsgen/app.js:11:18)
at Domain.EventEmitter.emit (events.js:96:17)
at process.uncaughtHandler (domain.js:61:20)
at process.EventEmitter.emit (events.js:126:20)
npm ERR! [email protected] start: node app.js
npm ERR! sh "-c" "node app.js" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the jsGen package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls jsGen
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.6
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! cwd /root/jsgen
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/jsgen/npm-debug.log
npm ERR! not ok code 0

macos 安装(node app.js install)不成功

restlog_main.log文件内容:
[2014-02-22 21:48:02.457] [ERROR] angularjs.cn - { [Error: URL must be in the format mongodb://user:pass@host:port/dbname] domainThrown: true }
Error: URL must be in the format mongodb://user:pass@host:port/dbname
at Error ()
at exports.parse (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11)
at Function.MongoClient.connect (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/mongo_client.js:167:16)
at SkinClass.SkinDb._open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/db.js:36:25)
at SkinClass.open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/utils.js:127:14)
at SkinClass.(anonymous function) as createCollection
at then.then.collection.ensureIndex._id (/Users/Joe/Downloads/jsgen-master/api/install.js:10:22)
at /Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:170:9
at process._tickDomainCallback (node.js:459:13)

修改dao/mongodao.js 文件中: module.exports = {
db: jsGen.module.mongoskin.db('mongodb://'+mongoIp + ':' + mongoPort + '/?auto_reconnect=true', {
database: mongoDbName
})
后再次运行 node app.js install 后restlog_main.log文件内容:
[2014-02-22 21:51:36.828] [ERROR] angularjs.cn - { [TypeError: Property 'initGlobalConfig' of object # is not a function] domainThrown: true }
TypeError: Property 'initGlobalConfig' of object # is not a function
at then.then.then.then.globalConfig (/Users/Joe/Downloads/jsgen-master/api/install.js:20:25)
at execute (/Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:261:26)
at prototype.defer (/Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:276:9)
at /Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/db.js:1436:15
at Server.Base._callHandler (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/base.js:442:41)
at /Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/server.js:485:18
at MongoReply.parseBody (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null. (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/server.js:443:20)
at EventEmitter.emit (events.js:95:17)
at null. (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)

Question about the value of article.updateTime

将评论的发布时间更新到article.updateTime作为文章的编辑时间合适吗?
那只是评论而已,如果添加了新的评论,那文章的编辑时间也会变成:刚刚更新.

btw,为什么有时候选了tag之后再点击下一页会导致返回首页? 这2天发现的,时好时坏.

安装成功,但运行有问题

后台没有什么问题,但就是页面上不显示内容,浏览器上方有图标和标题。 请教一下,怎么解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.