Skip to content

Realtime chat messaging with django channels over web sockets with redis channel layers.

Notifications You must be signed in to change notification settings

sbhusal123/realtime-messaging

Repository files navigation

Live Chat Messagging with Django Websockets

  • Python Version: 3.8.10

Architecture of Event Driven WebSocket based Application:

Arch

Prerequisite:

Runing An Application:

This is a minimalistic chat application built with redis, django channels.

When a docker services are composed up, it create a two separate user with following credentials:

web-backend   | User1 Credentials
------------------------------------------------------------------------------------------------------------------------------------------------------
web-backend   | {'username': 'user1', 'email': '[email protected]', 'password': 'thepassword', 'is_staff': True, 'is_superuser': True
------------------------------------------------------------------------------------------------------------------------------------------------------


web-backend   | User2 Credentials
------------------------------------------------------------------------------------------------------------------------------------------------------
web-backend   | {'username': 'user2', 'email': '[email protected]', 'password': 'thepassword', 'is_staff': True, 'is_superuser': True}
------------------------------------------------------------------------------------------------------------------------------------------------------

Basically, user is logged in through the admin panel, as they are both a superuser. So, users are authenticated through django admin panel at:

http://localhost:8000/admin

To open up a chat window, navigate to:

http://localhost:8000/rooms/1

1 here is the room id and is associated with the two user groups on chat channel.

About

Realtime chat messaging with django channels over web sockets with redis channel layers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages