Skip to content

Commit 7b498ba

Browse files
committed
添加安装说明
1 parent 17228a4 commit 7b498ba

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{jsGen} <small>0.1.0</small>
1+
{jsGen} <small>0.1.1</small>
22
=======
33
**——JavaScript Generated**
44

@@ -36,7 +36,7 @@ jsGen基本原理:客户端浏览器发起访问请求后,NodeJS服务器先
3636

3737
### 说明
3838

39-
**jsGen** 是为[AngularJS中文社区][2]开发的网站系统,第一个测试版(0.1.0)即将上线,敬请关注
39+
**jsGen** 是为[AngularJS中文社区][2]开发的网站系统,测试版已经上线,还请大家温柔测试,积极反馈Bug
4040

4141
在移动互联网爆炸式发展、webOS类系统(谷歌ChromeOS、火狐OS等)进入实用阶段、TV机顶盒应用即将爆发等大环境大趋势下,JavaScript无疑将成为WEB中最重要的开发语言,深入学习JavaScript势在必行。
4242

@@ -48,6 +48,22 @@ AngularJS中文社区改版之后,致力于形成一个以AngularJS为主,WE
4848

4949
### 安装
5050

51+
系统需要Node.js和mongoDB。
52+
53+
config目录下的config.js配置jsGen运行参数,包括监听端口(默认3000)、数据库等,内有详细说明。
54+
55+
api目录下的install.js是jsGen运行初始化文件,其中第129、130行分别是超级管理员的用户Uid和用户名,请勿修改。第131行是管理员邮箱,第132行是管理员初始密码,这两处请自行修改。(内有说明)
56+
57+
//如果未安装git工具,请手动下载jsGen。
58+
git clone git://github.com/zensh/jsgen.git
59+
//进入jsgen目录
60+
cd jsgen
61+
//npm安装依赖模块,请确保依赖模块全部安装好。
62+
npm install
63+
//启动jsgen(或者 node app.js)
64+
npm start
65+
66+
浏览器端输入网址[http://localhost:3000/](http://localhost:3000/)即可访问。
5167

5268
### 用户访问URL
5369

api/install.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ function users() {
126126
}
127127
if (!doc) {
128128
jsGen.dao.user.setNewUser({
129-
_id: jsGen.dao.user.convertID('Uadmin'),
130-
name: 'admin',
131-
132-
passwd: jsGen.lib.tools.SHA256('[email protected]'),
133-
role: 5,
134-
avatar: jsGen.lib.tools.gravatar('[email protected]'),
135-
desc: '梦造互联网 By ZENSH'
129+
_id: jsGen.dao.user.convertID('Uadmin'), // 超级管理员的用户Uid,请勿修改
130+
name: 'admin', // 超级管理员的用户名,请勿修改
131+
email: '[email protected]', // 超级管理员的邮箱,请自行修改
132+
passwd: jsGen.lib.tools.SHA256('[email protected]'), // 超级管理员的初始密码,请自行修改
133+
role: 5, // 超级管理员最高权限,请勿修改
134+
avatar: jsGen.lib.tools.gravatar('[email protected]'), // 超级管理员的gravatar头像,请自行修改
135+
desc: '梦造互联网 By ZENSH' // 超级管理员的个人简介,请自行修改
136136
}, callback);
137137
}
138138
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"url": "http://weibo.com/zensh"
66
},
77
"name": "jsGen",
8-
"version": "0.1.0",
8+
"version": "0.1.1",
99
"description": "",
1010
"keywords": ["Node.js", "AngularJS", "mongoDB", "jsGen"],
1111
"homepage": "https://github.com/zensh/jsgen",

0 commit comments

Comments
 (0)