Giter Club home page Giter Club logo

Comments (2)

JamesChenX avatar JamesChenX commented on May 26, 2024 2

感谢反馈。
首先把Turms服务端换成20号22号发布的(就改了一个turms的jar包),因为这个版本会自动在启动时mock测试数据(但注意要将application.properties下的数据库名由turms改为turms-dev)。 https://github.com/turms-im/turms/releases/download/v0.8.0-dev-beta.20191022/v0.8.0-dev-beta.20191022.zip
然后可以去到 https://github.com/turms-im/turms-client-js 项目,并clone这个项目。下载完后,运行demo文件夹下的demo.html(保证它运行在web环境。以http(s)协议开头,而不是file协议。用intellij idea直接打开这demo.html的话,它默认就会运行在web环境),它就能自动登陆到Turms服务端,并执行创建新Group和拉取离线消息的操作。
这部分你可以通过F12,打开浏览器console来看。

在实际项目开发中,可以引入
https://github.com/turms-im/turms-client-js/blob/develop/dist/turms-client-min.js 来调用所有的TurmsClient类下面的对象与方法(用法可以参考demo,使用起来真的很简单。而且turms-client-js.d.ts会给IDE代码提示)

当然,现在前端工程化,很少直接用<script></script>引用js,所以turms-client-js之后会作为前端的dependency发布到公共仓库,方便开发者调用。

P.S. 这个周日(27号)会给出turms-client-js的使用文档,感谢关注。

from turms.

KevinHe666 avatar KevinHe666 commented on May 26, 2024

谢谢 我去研究下

from turms.

Related Issues (20)

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.