๐Ÿ“ฆ Bearbobs / chat-app

Real Time chat application made with Django (Backend) and React (frontend)

โ˜… 1 stars โ‘‚ 2 forks ๐Ÿ‘ 1 watching
backenddjangofrontendhacktoberfestjavascriptreactredis
๐Ÿ“ฅ Clone https://github.com/Bearbobs/chat-app.git
HTTPS git clone https://github.com/Bearbobs/chat-app.git
SSH git clone git@github.com:Bearbobs/chat-app.git
CLI gh repo clone Bearbobs/chat-app
Anuj Kapoor Anuj Kapoor Merge pull request #30 from Bearbobs/dependabot/npm_and_yarn/frontend/hosted-git-info-2.8.9 c83b1c1 4 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ backend
๐Ÿ“ frontend
๐Ÿ“„ .gitignore
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Chat Server

Real Time chat application made with Django (Backend) and React (frontend). Django Channels for API with React and Websockets on the frontend. Redis to implement the publish subscribe pattern.

Requirements

API:

  • python 3
  • pip
  • redis-server
Frontend:

  • npm

Setup

Clone this repository.

  • I am on arch thats why I'm using pacman , one can use any package manager.

Backend

$ sudo pacman -S python

$ sudo pacman -S redis

$ pip3 install virtualenv

$ cd backend

$ virtualenv venv

$ source venv/bin/activate

$ pip3 install -r requirements.txt

$ python manage.py migrate

$ python manage.py makemigrations

$ redis-server & python3 manage.py runserver

Frontend

$ sudo pacman -S npm

$ cd frontend

$ npm install

$ npm start

Future Additions

  • Login feature using the User model
  • Show online users