Skip to content

Commit

Permalink
修改使用手册中的本地部署文档
Browse files Browse the repository at this point in the history
增加从release中下载war的说明
  • Loading branch information
ufologist committed Apr 18, 2014
1 parent f143230 commit 13978ba
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
目前文档还不是很全, 可能也比较杂乱, 请大家多多包涵...

## 本地部署 RAP 平台(J2EE Web)
1. 准备 MySQL一枚, tomcat7 一只
2. 连接到你的MySQL新增数据库(Schema) -> BosnAutoPlatformDB

修改 [src/mysql.local.properties] 中连接数据库的用户名和密码
3. 初始化数据库(src/database)

**准备事项**

1. MySQL一枚, Tomcat7一只

2. 启动MySQL连上去新增数据库(Schema) -> BosnAutoPlatformDB

3. 初始化数据库

初始化SQL放在 [src/database] 或你下载的war包(WEB-INF/classes/database)中

通过SQL工具连接到上面你新增的数据库依次执行如下SQL:

1) create-table.sql
Expand All @@ -17,18 +21,36 @@
3) test-data.sql

4) update.sql
4. 打个war包发布到tomcat7, 启动试试

4. 修改连接数据库配置

配置文件在 [src/mysql.local.properties] 或你下载的war包(WEB-INF/classes/mysql.local.properties)中.

主要是修改连接到数据库的用户名和密码


### 方法1: 下载war包直接部署
1.[releases] 中下载最新版的RAP.war
2. 发布到tomcat7中, 启动试试

### 方法2: 自己构建war包部署
1. clone项目
2. 按照准备事项修改那些配置
3. 打个war包发布到tomcat7, 启动试试

例如打包为RAP.war, 发布到tomcat7后访问地址为: http://localhost:8080/RAP
5. 如果页面打开正常, 那么就可以体验 RAP 平台中的功能了

登录用户: test

登录密码: 123456

登录成功后可以将Dashboard中的项目全部删掉(原来自带的示例都没办法正常使用, 数据库表 tb_project 中未初始化 project_data JSON)

接着就可以新建一个项目, 万事OK啦.

### 体验 RAP
如果页面打开正常, 那么就可以开始体验 RAP 平台中的功能了

登录用户: test

登录密码: 123456

登录成功后可以将Dashboard中的项目全部删掉(原来自带的示例都没办法正常使用, 数据库表 tb_project 中未初始化 project_data JSON)

接着就可以新建一个项目, 万事OK啦.


## 在接口详情中定义mock数据
Expand Down Expand Up @@ -66,7 +88,8 @@ RAP通过 [Mock.js] 来生成mock数据
保存在tb_project表的project_data字段, 具体示例请参考: [project_data_example.json]



[src/database]:https://github.com/ufologist/RAP/blob/master/src/database
[releases]:https://github.com/ufologist/RAP/releases
[src/mysql.local.properties]:https://github.com/ufologist/RAP/blob/master/src/mysql.local.properties
[Mock.js]:http://mockjs.com/
[Mock.Random]:http://mockjs.com/#Mock.Random
Expand Down

0 comments on commit 13978ba

Please sign in to comment.