Giter Site home page Giter Site logo

sealtalk / sealtalk-web Goto Github PK

View Code? Open in Web Editor NEW
167.0 20.0 118.0 3.91 MB

【此项目已停止维护】Web IM of SealTalk powered by RongCloud. 基于融云开发的 Web 版即时通讯(IM)应用程序 - 嗨豹。

Home Page: http://web.sealtalk.im

License: MIT License

CoffeeScript 0.64% CSS 4.37% HTML 4.48% TypeScript 23.66% JavaScript 66.84%

sealtalk-web's Introduction

融云 RongCloud Web IM v2.0

Environment Setup

初始化开发工具

npm install -g typescript coffee-script grunt-cli

如果无权限, 请使用 sudo npm

修改配置

配置文件: src/app.config.js

window.__sealtalk_config = {
  serverUrl: "http://localhost:8585", // 此处填写您部署的 App Server 地址
  appkey: "appkey" // 此处填写您的融云 AppKey
};

安装依赖库

在项目根目录下执行:

npm install
bower install

编译开发代码

执行成功后, 将在项目根目录生成 build 文件夹, 直接运行 build/index.html 即可打开页面

build 内为只合并不压缩的代码, 适用于开发者调试

grunt build

发布正式代码

执行成功后, 将在项目根目录生成 dist 文件夹, 直接运行 build/index.html 即可打开页面

dist 内为压缩合并后的代码, 占空间更小, 资源加载更快, 适用于生产环境

grunt release

启动本地服务器

grunt connect

在浏览器中打开

http://localhost:8181

执行 grunt build 前需将 app.config 文件中的 serverUrl 和 appkey 改为自己应用的值

Coding Guidelines

https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines

注意事项

  1. 必须修改 src/assets/app.config 中 serverUrl 和 appkey 的值
  2. 一般开发模式使用 grunt build 生成的项目文件(仅合并, 不压缩)调试
  3. 一般生产环境使用 grunt release 生成的项目文件(压缩合并后的文件)
  4. 此开源项目为融云提供给开发者的体验 Demo, 开发者需了解源码后再进行二次开发, 否则二次开发过程中遇到问题将难以解决
  5. SealTalk Server 开源项目参考: https://github.com/sealtalk/sealtalk-server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.