🔮Front End Engineer
📟 https://blog.csdn.net/a1309525802
📟 https://juejin.cn/user/3236586350975175
基于electron和nodejs实现仿TIM界面,实现基本的添加好友,单聊,群聊,语音通话,视频通话,发送文件,发送图片
🔮Front End Engineer
📟 https://blog.csdn.net/a1309525802
📟 https://juejin.cn/user/3236586350975175
哈哈哈哈
我在nginx中添加了一个反代 chat.xxx.xxx
(从以前qq机器人的ws反代那边复制过来的)
location / {
proxy_pass http://127.0.0.1:8888;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 3600s;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
使用绑定的域名作为服务器地址(https://chat.xxx.xxx
)时无法连接,添加端口号后(https://chat.xxx.xxx:8888
)连接正常
请问是此项目不支持这种方式,还是nginx的配置有问题呢
我尝试自己调试了一下代码,发现当不带端口号时,登录的接口这里返回的response会显示undefined
(没学过js,所以再深一点的debug就不太清楚了xd)
数据库使用自己的账号密码,不仅要更改server/db/db.js中的账号密码,还要移除server/config.json,因为第二个文件存在则默认使用里面的账号密码
目前光使用UI文件的时候发现了几处报错
yran install的时候会提示yarn 中node 版本过高的问题
yran serve的时候会提示npx browserslist@latest --update-db和其他的报错
# dong @ lufei in E:\test\chat\ui on git:main x [21:42:14]
$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error @achrinza/[email protected]: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.16.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
# dong @ lufei in E:\test\chat\ui on git:main x [21:47:18] C:1
$ node -v
v18.16.0
数据库不怎么懂 研究下数据库再来跑你的项目 /doge
有么有在线用户数限制?
我的命令行和navicat 都可以连上我本地mysql ,跑你这代码咋不行。
mysql> select host,user,plugin,authentication_string from mysql.user;
+-----------+------------------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+------------------+-----------------------+------------------------------------------------------------------------+
| % | root | mysql_native_password | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
能否让程序关闭后最小化到任务栏,让其可以继续接收消息,也添加一个删除好友的功能,最好可以通过Windows10和11的通知来推送新消息
感觉大佬的前端页面制作的不错,我也在做聊天室,不过更趋向于完整。例如消息已读回执,离线消息,消息全量、增量拉取等等,详细的功能说明欢迎来访问 https://github.com/BanTanger/whale-shark(顺带求个star),目前后端所有基础逻辑都已实现,只是缺少前端展示,希望大佬能一起参与开源来完善呀
你好,第一次了解electron这个知识点,就是我想在浏览器上调试代码,打开报错 const remote = window.require('electron').remote;
ndow.require is not a function 可能是我理解有问题 你们开发不会出现这个错误吗 那你们是怎么调试页面的呢? 谢谢
前端运行成功后出现的界面有调试界面,应该默认【不】打开调试控制台的。而且打开还打乱了显示的布局
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.