• Stars
    star
    2,726
  • Rank 16,135 (Top 0.4 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open source version of jianliao.com

简聊开源版

简聊所有业务代码的开源版本,可作任意修改

简聊 - 产品项目包含了简聊由开始到现在的所有开发历程,设想,和设计资源,感兴趣的同学可加入项目参观或留言

部署

  • Node 4 (nvm use)
  • Npm 2

安装环境

  • 简聊使用 MongoDB 作为数据库,Redis 作为缓存和消息通讯中间件。所以首先需要在本地部署 MongoDBRedis 并使用默认端口号(配置文件见 config/default.coffee)。建议使用 MongoDB 3.2 和 Redis 2.8,更高版本未经过生产环境测试。

  • 简聊的搜索使用 ElasticSearch 1.6.2 + ik 中文分词插件,代码中已经关闭了消息搜索的功能,如需打开,需要修改以下文件

    - talk-api2x/
    - server/
     - schemas/
       - search-favorite.coffee      # 删除 `return # @osv`
       - search-message.coffee       # 删除 `return # @osv`
       - search-story.coffee         # 删除 `return # @osv`
       - message.coffee              # 删除 `return # @osv`
       - favorite.coffee             # 删除 `return # @osv`
     - observers/
       - story.coffee                # 删除 `return # @osv`
    
  • 并且在 config/default.coffee 中增加

    searchHost: 'localhost'
    searchPort: 9200
    searchProtocol: 'http'
    
  • 执行 create-search-template.sh 创建索引结构

安装代码依赖

注意:请使用 node 4.x,npm 2.x 版本,并预先启动 mongodb, redis

  1. 初始化安装依赖 npm run init(安装PhantomJS时可能会卡住)
  2. 安装全局 coffee-script npm i -g coffee-script(并确保 coffee 命令在当前环境变量下可用)
  3. 启动 mongodb,redis 后,执行代码 npm start
  4. 访问浏览器 http://localhost:7001

LICENSE

MIT

More Repositories

1

talk-ios

简聊 iOS 源代码 (Source code of Talk for iOS https://jianliao.com ), AppStore link
Objective-C
63
star
2

talk-android

Open source version of jianliao.com
Java
62
star
3

react-lite-dropdown

Dropdown menu from Talk by Teambition
CoffeeScript
46
star
4

talk-services

Integration services of jianliao.com
CoffeeScript
43
star
5

actions-recorder

React Actions Recorder
CoffeeScript
29
star
6

volubile-ui

UI collections of 简聊(Talk by Teambition)
CSS
25
star
7

react-lite-audio

Customized audio tag for Web version of Talk by Teambition
CoffeeScript
22
star
8

react-lite-misc

Misc components used in Talk by Teambition
CoffeeScript
21
star
9

talk-guide

简聊用户指南
20
star
10

react-lite-uploader

fileapi wrapper in React for uploading files
CoffeeScript
17
star
11

react-lite-layered

React modal component from Talk.ai
CoffeeScript
16
star
12

coffee-webpack-starter

Start up kit for Talk by Teambition
CoffeeScript
12
star
13

icon-fonts

Icons fonts by Teambition
HTML
12
star
14

router-view

Router as a View for React
CoffeeScript
12
star
15

react-stack-modal

A stack manager of modal, according to uni-directional dataflow
CoffeeScript
10
star
16

react-lite-coder

Code editor and previewer for Jianliao.com
CSS
9
star
17

hire

You are wanted
7
star
18

react-lite-textbox

Textarea wrapper with caret infos for Talk by Teambition
CoffeeScript
6
star
19

react-lite-json-viewer

JSON viewer
CoffeeScript
6
star
20

react-lite-markdown

React markdown renderer of 简聊
CSS
6
star
21

talk-message-forms

Jianliao.com message components
CoffeeScript
5
star
22

talk-node-sdk

node sdk for talk
CoffeeScript
5
star
23

Talk-Dialog

Dialog Widget for Talk
Java
4
star
24

talk-vote-bot

Vote bot on jianliao.com
CoffeeScript
3
star
25

react-lite-image

Image component
CoffeeScript
3
star
26

talk-icon-fonts

CoffeeScript
2
star
27

react-lite-space

React Component for Space
CoffeeScript
2
star
28

isomorphic-webapp-deku

Isomorphic experiments in Deku
CoffeeScript
1
star