Skip to content

testdrivenio/django-channels-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Channels Tutorial

Want to learn how to build this?

Check out the tutorial.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the requirements:

    (venv)$ pip install -r requirements.txt
  4. Apply the migrations:

    (venv)$ python manage.py migrate
  5. Start a Redis server for backing storage:

    (venv)$ docker run -p 6379:6379 -d redis:5
  6. Run the server:

    (venv)$ python manage.py runserver
  7. By default, only authenticated users can chat. To create a test user:

    (venv)$ python manage.py createsuperuser
  8. Log in using your newly created user at http://localhost:8000/admin/.

  9. Navigate to http://localhost:8000/chat/.