Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CopyleftDeveloper/talk-os

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简聊开源版

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

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

部署

安装环境

  • 简聊使用 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'
    

安装代码依赖

  1. 初始化安装依赖 npm run init
  2. 执行代码 npm start
  3. 访问浏览器 http://localhost:7001

LICENSE

MIT

About

Open source version of jianliao.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CoffeeScript 89.5%
  • CSS 8.8%
  • HTML 1.1%
  • Other 0.6%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.