Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GspiriTer authored Oct 21, 2023
1 parent 7bb2fb4 commit 53b0c6d
Showing 1 changed file with 57 additions and 18 deletions.
75 changes: 57 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# wk_open_hrm

体验地址:[https://www.72crm.com](http://www.72crm.com)

## 悟空人力资源管理介绍


悟空人力资源管理系统正式开源,从人力资源管理的角度出发,用集中的数据将几乎所有与人力资源相关的信息(组织规划、招聘管理、员工管理、考勤管理、社保管理、绩效管理)统一管理起来。


官网地址:[http://www.5kcrm.com](http://www.5kcrm.com/)


QQ群交流群群:[259359511](https://qm.qq.com/cgi-bin/qm/qr?k=G9T2audQqbZBR_HG0aTP9E-8fE7oMeb8&jump_from=webapi)


扫码添加小悟官方客服微信,邀您加入千人微信交流群:

<img src="https://images.gitee.com/uploads/images/2019/1231/115927_f9c580c8_345098.png" width="120">
Expand All @@ -25,14 +22,11 @@ QQ群交流群群:[259359511](https://qm.qq.com/cgi-bin/qm/qr?k=G9T2audQqbZBR_

<img src="https://raw.githubusercontent.com/WuKongOpenSource/WukongHRM/main/img/cc1.png" width="120">


:boom: :boom: :boom: 注:悟空人力资源管理系统采用全新的前后端分离模式,本仓库代码中已集成前端vue打包后文件, **可免去打包操作,无需运行前端**



# 悟空项目管理目录结构

``` lua
```lua
wk_open_hrm
├── common -- 基础模块
├── DB -- sql文件
Expand All @@ -49,7 +43,6 @@ wk_open_hrm
**绩效管理,调动全员积极性** <br/>
**员工自助,员工所有相关信息一览无余** <br/>


# 悟空人力资源管理使用的主要技术栈

# 后端:
Expand All @@ -76,14 +69,11 @@ wk_open_hrm

Linux 环境配置要求如下:

推荐使用系统:centos
系统内存:≥8G
推荐使用系统:centos
系统内存:≥16G
系统CPU:≥4核
磁盘大小:≥100G

***如何下载及安装Linux环境:下载教程。


### 二、前置环境,需要在Linux环境下安装以下配置

- Jdk1.8
Expand All @@ -92,17 +82,18 @@ Linux 环境配置要求如下:
- Redis(版本不限)
- elasticsearch8.5.3


### 安装说明

#### 一、依赖环境安装

###### 1. 安装jdk

```
yum -y install java-1.8.0-openjdk-devel;
```

###### 2. 安装redis

```
yum -y install epel-release;
yum -y install redis;
Expand All @@ -111,16 +102,18 @@ systemctl start redis
#-- 修改redis密码为123456
yum -y install vim;
vim /etc/redis.conf;
#-- 在文件最下面追加一行
requirepass 123456
#-- 或者输入 / 搜索 # requirepass foobared
#-- 将前面的#删除,将foobared改为123456
#-- 修改完成之后 :wq 保存并退出,重启redis
systemctl restart redis
systemctl restart redis
```

###### 3.安装mysql

```
wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
yum -y install mysql80-community-release-el7-3.noarch.rpm
Expand All @@ -145,18 +138,40 @@ vim /etc/my.cnf;
--输入 i 进入编辑模式,修改sql_mode设置,将下面sql_mode配置复制,到 [mysqld]下使用 shift+insert 粘贴
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
--修改完毕,按esc按键,然后 :wq 保存并退出,重启mysql
service mysqld restart;
```

### 4.安装elasticsearch(es)

```
--下载es
# 注意不要放在root目录下
useradd elasticsearch
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.5.3-linux-x86_64.tar.gz
tar xvf elasticsearch-8.5.3-linux-x86_64.tar.gz
chown -R elasticsearch:elasticsearch elasticsearch-8.5.3
chmod -R 777 elasticsearch-8.5.3
--修改es配置文件:elasticsearch.yml
ingest.geoip.downloader.enabled: false ## 添加配置
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: false # 改为false
keystore.path: certs/http.p12
Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
enabled: false # 改为false
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
-- 安装es分词器
./elasticsearch-plugin install analysis-icu
Expand All @@ -166,24 +181,43 @@ chmod -R 777 elasticsearch-8.5.3
-- 进入bin启动es
su elasticsearch
./elasticsearch
```

#### 二、项目配置与启动

yum -y install maven

###### 1.导入DB目录下数据库

```
create database wk_hrm_open character set utf8mb4 collate utf8mb4_general_ci;
use wk_hrm_open;
source XXX
```

###### 2.在项目根目录执行mvn install

###### 2.修改配置信息

###### 3.在hrm模块下resource目录配置数据库帐号信息以及redis帐号信息`

###### 4. 访问[悟空ID](https://id.72crm.com/)获取账号

###### 注册之后点击默认企业,应用列表中选择人力资源管理

![默认企业](img/007.png "img1.png")

###### 点击人力资源管理

![人力资源管理](img/008.png "img2.png")

##### 将App ID,accessKey,secretKey复制到 hrm-web\src\main\resources\application.yml,分别对应appId,clientId,clientSecret 如下图所示

![代码配置](img/009.png "img4.png")
将appId复制到hrm-web\src\main\resources\static\APPLICATION_ID.txt内,替换里面内容

###### 5. 项目打包部署

```
--项目打包
mkdir /opt/package
Expand All @@ -196,6 +230,7 @@ sh 72crm.sh start
```

###### 6. 前端项目项目运行、打包

```
- 下载node并安装(LTS):https://nodejs.org/;
- 该项目为前后端分离项目,本地访问需搭建后台环境,请参考[后端项目](https://gitee.com/wukongcrm/crm_pro);
Expand All @@ -210,22 +245,26 @@ sh 72crm.sh start
- 打包完成
```


### 三、其他说明

#### 1.接口文档<br/>

```
接口文档地址:http://localhost:44311/doc.html
```

#### 2.docker镜像<br/>

```
敬请期待
```

### 四、悟空人力资源功能模块预览

![输入图片说明](img/001.png)
![输入图片说明](img/002.png)
![输入图片说明](img/003.png)
![输入图片说明](img/004.png)
![输入图片说明](img/005.png)
![输入图片说明](img/006.png)

0 comments on commit 53b0c6d

Please sign in to comment.