All Projects → DoloresTeam → dolores-server

DoloresTeam / dolores-server

Licence: Apache-2.0 license
dolores 服务端

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to dolores-server

dolores-ios
dolores iOS 客户端
Stars: ✭ 22 (-21.43%)
Mutual labels:  dolores
dolores-admin
dolores 后台管理网站
Stars: ✭ 16 (-42.86%)
Mutual labels:  dolores

CircleCI

在线测试 http://www.dolores.store:32880/login
用户名:admin 密码:dolores

dolores-server

服务端主要做两件事:

  • 为客户端提供组织架构 REST API
  • 提供一个用于管理组织架构的Web APP

请确认您已经安装数据库,如未安装请移步这里

通过软件包安装

MacLinuxwindows

从源码编译安装

服务端用go语言开发,所以您需要配置go 语言开发环境 传送门

0x00. 获取源码

go get -u https://github.com/DoloresTeam/dolores-server

0x01. 编译

cd dolores-server && go build

0x02. 获取后台管理程序

获取后台管理文件,将其copy至服务端程序同目录的 webRoot 子目录

0x03. 获取配置文件模版

配置文件模版下载

获取配置文件以后,将其与服务端程序放在同目录(或者运行服务端程序是使用 --path 指定配置文件) 目录结构

配置

  1. dolores使用了环信的云服务来处理IM消息,所以您需要先去环信注册一个账号获取 ClientIDSecret点击立即申请

  2. dolores 使用七牛存储用户头像等其他文件,所以你需要注册一个七牛账号获取 AccessKeySecretKey. 点击立即申请

默认配置文件如下:

#open-ldap
host: 127.0.0.1 # 数据库主机
port: 389 # 数据库端口
subffix: dc=dolores,dc=store # ldap mdb 数据库subffix
rootdn: cn=admin,dc=dolores,dc=store # 注意rootDN的后缀要和上面一致
rootpwd: dolores
#七牛
qnaccesskey: ReplaceMe # 目前用来存储头像
qnsecretkey: ReplaceMe
# 环信
emclientid: ReplaceMe
emsecret: ReplaceMe
embaseurl: https://a1.easemob.com/ReplaceMe #注意这里,后面拼接自己的company org_name app
  • open-ldap: 数据库连接信息
  • 七牛:七牛云存储信息
  • 环信:IM消息服务连接信息

配置结束,当前目录类似于这样:

运行

./dolores-server --path conf.yaml

好了,如果没有错误消息,那么恭喜你dolores-server 配置安装成功。你可以访问http://localhost:3280管理组织架构,然后使用dolores-ios来测试组织架构更新,聊天等功能。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].