通过数据库与Vue和Axios进行实时更新

两周或更长时间以来,我正在做一些PHP,HTML和Javascript。</ p>

我曾与Laravel合作并且还做了一些教程。 我目前的问题是,我理解基本概念,但对我来说仍然很难。</ p>

我的朋友,我现在想和Vue.js一起工作。 </ p>

目前,我缺乏技能,因此创建实时投票或类似工具而不刷新读取和写出数据库的浏览器页面是我的目标。 (想象一下,它就像足球的实时点数)。 </ p>

我们都不想使用jquery,所以Axios是我们的主要想法...正如我所说的业余爱好者的工作。 </ p>

我的问题是:我怎样才能做到这一点? 你能解释一下,我们该怎么办? 要观看的教程或其他视频? 或者你有一个同样的例子,所以我们可以阅读代码并重新创建类似于示例数据库的东西? (例如:实时搜索)</ p>

提前致谢! </ p>
</ div>

展开原文

原文

Since two weeks or more, I am doing some PHP, HTML and Javascript.

I have worked with Laravel and also did a few Tutorials. My current issue is, that I understand the basic concept but it is still quite hard for me.

My Friend and I wanna work now with Vue.js.

Currently, I have a Lack of Skills, so creating a live poll or similar without refreshing the Browser Page that read and writes out of my database is my aim. (Imagine it like a live point scale for soccer).

We both do not want to use jquery, so Axios is Our main idea... As I said bit of work for an amateur.

My question to you is: How can I achieve this? Could you explain me, how we should proceed? Tutorials or other Videos to watch? Or do you have a likewise example for us, so we can read the code and recreate something similar with an example database? (eg: live search)

Thanks in advance!

1个回答



好的,您正在寻找的术语称为 real-time </ code>。 对于初学者来说,这种应用背后的理论看起来有点复杂。 因此,我将对您应该学习的关键概念进行分类,以便真正理解并能够应用它们。</ p>

第一个概念:WebSocket。</ p>

https://www.linode.com/docs/development/introduction-to -websockets / </ p>

第二个概念:发布/子模式。</ p>

https://aws.amazon.com/pub-sub-messaging/ </ p>

Thrid概念: Pusher网络工具。</ p>

https://pusher.com/docs </ p>

最后,您将能够将这些概念应用于一起,并按照以下链接构建您的应用程序。</ p>

https://medium.com/@danielalvidrez/laravel-pusher-lets-do-it -96bd23e76a7e </ p>
</ div>

展开原文

原文

Ok, the term that you're looking for is called real-time. The theory behind this kind of application could seem a bit of complex for a beginner. So, I'll classify the key concepts that you should study to really understand and be able to apply them.

First concept: WebSocket.

https://www.linode.com/docs/development/introduction-to-websockets/

Second concept: Pub/Sub pattern.

https://aws.amazon.com/pub-sub-messaging/

Thrid concept: The Pusher web tool.

https://pusher.com/docs

And finally, you'll be able to apply theses concepts together and build your app following the link below.

https://medium.com/@danielalvidrez/laravel-pusher-lets-do-it-96bd23e76a7e

douxiyi2418
douxiyi2418 当然。 在我发送的最后一个包含此视频显示应用程序正常工作。 vimeo.com/253807963
大约一年之前 回复
dopmgo4707
dopmgo4707 完善! 我要深入了解IT,你知道我在哪里可以找到一个小的真实生活例子吗?
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐