Creating a chat program with django! I have a question!

Asked 2 years ago, Updated 2 years ago, 40 views

I'd like to create a chat program on the web, not go to the CHATTING ROOM page and chat, but like chatting on Facebook, I'd like to implement it so that if you press a button on the page you're looking at, the chat window pops up and chat.

I already made a chat page, but how can I make a chat like Facebook? Please let me know if you have any documents or web pages for reference!

Thank you.

django python

2022-09-21 23:19

2 Answers

It's not an implementation to open the chat window when you press the button I think you're curious about the realization of the chat.

After opening and closing the chat window, you can implement it in JavaScript.

You can implement chat on the web by using socket.io or firebase.

If you use socket.io, you must run the node.js server. We also need additional databases to store messages or membership information.

If you use firebase, you can easily implement chat without having to build a server or DB separately. However, I understand that the browser is supported on IE 10 or higher. (I know that socket.io supports IE 8 and above, but I have not tested it.) However, firebase is charged. Of course, we also support a limited range of free services, so you can test them or upload a simple service.


2022-09-21 23:19

If you want to fully implement what you said, it's a front-end issue, not a Django issue.

In addition to Javascript / jQuery, it would be a good idea to learn things like AngulaJs, Backbone.js, Ember.js, etc., which are front-end frameworks.

For the backend part, you can use node.js (socket.io), firebase, etc. as mentioned above, but it can be implemented only with Django.


2022-09-21 23:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.