ChatMe is live chat application was built using django, django-channel and redis. ChatMe using websocket to support realtime chat
- Please install docker on your machine
- Create .env file based on .env.example
- Running
docker-compose up --build
- Run backend terminal and run next instruction on chatme-backend terminal
docker-compose run chatme-backend sh
- Migrate db schemes
python manage.py migrate
- Add superuser for django admin
and follow the instructions
python manage.py createsuperuser
- Run test
coverage run --omit --source='.' manage.py test
You can test websocket using Postman 8.5
- Connect to ws
- Send message through API
Endpoint:
http://localhost:8000/message/:session_code
- Receive message through websocket, connect to
ws://localhost:8000/:session_code