This project is a Django Channels application that implements WebSocket-based chat functionality. It includes middleware for automatic authentication using refresh tokens stored in cookies and a search function implemented with WebSocket.
- Django version: 5.0
- Django Channels version: 3.0.5
- WebSocket-based chat functionality
- Middleware for automatic authentication using refresh tokens stored in cookies
- Search function with WebSocket
- Clone the repository
git clone https://github.com/edonssfall/edWebsockets-BE.git
- Enter the project directory
cd edWebsockets-BE
- Copy the
.env.example
file and rename it to.env
cp .env.example .env
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Run the migrations
python manage.py migrate
- Run the development server
python manage.py runserver
- Open the application in your browser
http://localhost:8000