https://github.com/akshaypatra/chat-application
Chatting application made using django and react
https://github.com/akshaypatra/chat-application
bootstrap django django-rest-framework materila-ui reactjs
Last synced: 2 months ago
JSON representation
Chatting application made using django and react
- Host: GitHub
- URL: https://github.com/akshaypatra/chat-application
- Owner: akshaypatra
- Created: 2024-09-02T14:26:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T10:59:57.000Z (9 months ago)
- Last Synced: 2025-01-26T11:29:39.987Z (4 months ago)
- Topics: bootstrap, django, django-rest-framework, materila-ui, reactjs
- Language: Python
- Homepage:
- Size: 37.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
creating virtual environment using venv for django project
-> python3 -m venv my_venv## For Backend file :
1.to activate :
-> source my_venv/bin/activate
Note: After activating , use pip3 to install packages
2.to deactivate :
-> deactivate3.list of packages installed are (use : -> pip3 install package_name) :
1.djangorestframework
2.channels
3.channels-redis
4.pyjwt
5.django-cors-headers
6.daphne4.to update requirements.txt :
-> pip3 freeze > requirements.txt#to install and run redis
->brew install redis
->brew services start redisto check
->redis-cli pingto stop
->brew services stop redisto run manually
->redis-server## WEBSOCKET Testing
To check websocke is working or not
go to websocketking and
put this
-> ws://127.0.0.1:8000/ws/chat/2/?token= {authtoken}add this to send a message
{
"message":"websocket test"
}## FOR FRONTEND :
- To start the app
-> npm startINSTALLATIONS (FOR users : npm i dependencies (it will install all the packages)) :
+ using material UI
-> npm install @mui/material @emotion/react @emotion/styled+ using Bootstrap for components
-> npm i [email protected]+ axios for api requests
-> npm i axios+ react-router
-> npm i react-router-dom