From d39e4b4e9ac7dbfe31e8be87d4fbf1b57a1f9c70 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 24 四月 2022 16:45:37 +0800
Subject: [PATCH] 修改readme 文件

---
 docs/installHcDev_en.md |  100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 Readme.md               |    2 
 Readme_en.md            |    2 
 3 files changed, 102 insertions(+), 2 deletions(-)

diff --git a/Readme.md b/Readme.md
index 156fe14..76fd559 100755
--- a/Readme.md
+++ b/Readme.md
@@ -11,7 +11,7 @@
 
 ## how to install
 
-1銆乕Development environment installation](docs/installHcDev.md) <br/>
+1銆乕Development environment installation](docs/installHcDev_en.md) <br/>
 2銆乕Production environment installation](docs/installHcProd.md)<br/>
 
 ## how to use
diff --git a/Readme_en.md b/Readme_en.md
index 156fe14..76fd559 100755
--- a/Readme_en.md
+++ b/Readme_en.md
@@ -11,7 +11,7 @@
 
 ## how to install
 
-1銆乕Development environment installation](docs/installHcDev.md) <br/>
+1銆乕Development environment installation](docs/installHcDev_en.md) <br/>
 2銆乕Production environment installation](docs/installHcProd.md)<br/>
 
 ## how to use
diff --git a/docs/installHcDev_en.md b/docs/installHcDev_en.md
new file mode 100644
index 0000000..ff4fd89
--- /dev/null
+++ b/docs/installHcDev_en.md
@@ -0,0 +1,100 @@
+## HC Community Management System Installation Tutorial (Development Environment)
+
+1銆乨ownload code <br/>
+git clone https://github.com/java110/MicroCommunity.git <br/>
+鎵ц mvn clean package  鍜� mvn clean install<br/><br/>
+2銆丄dd hosts<br/>
+127.0.0.1 dev.db.java110.com <br/>
+127.0.0.1 dev.zk.java110.com <br/>
+127.0.0.1 dev.kafka.java110.com <br/>
+127.0.0.1 dev.redis.java110.com <br/>
+127.0.0.1 api.java110.com <br/>
+127.0.0.1 dev.java110.com <br/>
+3銆両nstall mysql and import TT.sql and hc_community.sql (files are under docs/db)<br/>
+4銆両nstall redis and specify the redis password<br/>
+5銆丮odify application-dev.yml and dataSource.yml under the service at the beginning of the module service-<br/>
+Mainly modify the redis password in application-dev.yml
+
+```yaml
+jedis:
+  pool:
+    config:
+      maxTotal: 100
+      maxIdle: 20
+      maxWaitMillis: 20000
+    host: dev.redis.java110.com
+    port: 6379
+    timeout: 3000
+    password: hc
+```
+Change password: hc in hc to the password specified by redis
+```yaml
+spring:
+  profiles:
+    active: share
+  http:
+    encoding:
+      charset: UTF-8
+      enabled: true
+      force: true
+  application:
+    name: community-service
+  redis:
+    database: 0
+    host: dev.redis.java110.com
+    port: 6379
+    password: hc
+    pool:
+      max-active: 300
+      max-wait: 10000
+      max-idle: 100
+      min-idle: 0
+      timeout: 0
+```
+Change password: hc in hc to the password specified by redis<br/>
+```yaml
+dataSources:
+  ds0: !!com.alibaba.druid.pool.DruidDataSource
+    driverClassName: com.mysql.cj.jdbc.Driver
+    url: jdbc:mysql://dev.db.java110.com:3306/hc_community?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+    username: hc_community
+    password: hc_community@12345678
+    minIdle: 5
+    validationQuery: SELECT 1 FROM DUAL
+    initialSize: 5
+    maxWait: 60000
+    filters: stat,wall,log4j
+    poolPreparedStatements: true
+  ds1: !!com.alibaba.druid.pool.DruidDataSource
+    driverClassName: com.mysql.cj.jdbc.Driver
+    url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+    username: TT
+    password: TT@12345678
+    minIdle: 5
+    validationQuery: SELECT 1 FROM DUAL
+    initialSize: 5
+    maxWait: 60000
+    filters: stat,wall,log4j
+    poolPreparedStatements: true
+```
+Modify password in dataSource.yml<br/>
+Note that for example, there is no dataSource.yml file in the service-api service<br/>
+6銆丼tart the main method in the *ServiceApplicationStart.java file under the service-start service-start module<br/>
+Note that there is no order to start, but we recommend that you start service-eureka first<br/>
+7銆丏ownload the previous code <br/>
+git clone https://github.com/java110/MicroCommunityWeb.git <br/>
+8銆丮odify the address in app.js<br/>
+```shell script
+app.use('/callComponent', proxy('http://192.168.100.108:8008', opts));
+app.use('/app', proxy('http://192.168.100.108:8008', opts));
+```
+Change 192.168.100.108 to the ip of your backend<br/>
+9銆乻tart and access<br/>
+npm start
+```shell script
+PS C:\project\vip\MicroCommunityWeb> npm start
+> micrcommunityweb@0.0.0 start C:\project\vip\MicroCommunityWeb
+> node ./bin/www
+```
+Indicates that the startup was successful<br/>
+address锛歨ttp://localhost:3000
\ No newline at end of file

--
Gitblit v1.8.0