Git Product home page Git Product logo

prodbygodfather / django-super-channels Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 6.27 MB

Channels wraps Django’s native asynchronous view support, allowing Django projects to handle not only HTTP, but protocols that require long-running connections too - WebSockets, MQTT, chatbots, amateur radio, and more.

License: MIT License

Python 30.86% HTML 24.01% CSS 27.58% JavaScript 17.55%
django-channels django-channels-chat django-channels-framework

django-super-channels's Introduction

Django Super Channels | FA

Chat room web application based on django_super_channels and implemented with websockets protocol.

Python Django redis Sqlite djangorestframework js html css

Django Super Channels is a chat room application based on django-channels. The design of this application is group chat.

Work process

The design and operation process of super channels is such that the address of the chat room is received on the index page. (if the chat room is available, it will be entered, and if it is not available, the chat room will be created). After the person enters the room, you can communicate with the people who have entered the chat room.

According to the picture, when a message is sent from the mahdi user, the message is sent to the server through websocket. The server saves the message once in the database and sends the same message again to the mahdi user and other users without the need for a request. All messages are received in the form of json through the client, and the main part of designing and displaying the messages is the responsibility of the client.

django channels is designed in the form of a messenger application whose client is javascript and its back-end has created a websocket-based connection with django.

In addition to the Super Chat section, the dashboard section is intended for users, which makes the sections and settings of the user's account accessible. Basically, it shows the number of user messages, the number of chat rooms in which the user is present, along with the deletion and display section of the chat room, the last login to the account and the date of registration. Other sections of this dashboard include the following sections:

  1. Changing the password.
  2. User account settings and user profile editing.
  3. Logging out of the user account.

In fact, the main part is the user dashboard, which can be accessed only by logging into the user account.

Performance

Note

It is better to use the virtualenvironment when installing libraries and running the project.

Warning

Have redis installed on the system before running.
download and install redis for windows and to cmd type redis-server to run the redis.

To install required libraries:

pip install -r requirements.txt

To Run The Project:

python manage.py runserver

django-super-channels's People

Contributors

abarvision avatar prodbygodfather avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

django-super-channels's Issues

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.