Coder Social home page Coder Social logo

zensh / jsgen Goto Github PK

View Code? Open in Web Editor NEW
1.6K 196.0 513.0 5.68 MB

[DEPRECATED]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.

Home Page: http://angularjs.cn/

License: MIT License

JavaScript 90.84% CSS 5.70% HTML 3.46%

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

和最新的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 =

xmlbuilder无法下载

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

Question about the value of article.updateTime

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

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

安装成功,但运行有问题

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

几个问题

缓存清除

请问如何清除缓存,例如图片缓存.例如我把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">

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 }

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?

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

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

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

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

进入默认的管理员账号: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

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

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


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

静态文件和浏览器缓存

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

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!

启动不了,求解

清哥,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了?还是什么情况,求助

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)

网页加载伪假死现象

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

废话完了

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

报告一个严重的Bug

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

启动报错

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]

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

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

浏览器显示为空白

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

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

环境:Mac OS X 10.8

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

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 ]

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端口,无法访问。
我是内网环境,估计没办法使用.

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

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上启动的时候报错

初始化报错

我在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

请问是什么原因?

"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.

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

安装不成功,报错如下

/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

怎么弄

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

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.

部署最新版不能启动

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

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?

安装时报错,缺少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 依然报错。

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.