{"id":16540658,"url":"https://github.com/fcwu/django-realtime-tutorial","last_synced_at":"2025-08-22T17:06:42.960Z","repository":{"id":14901418,"uuid":"17625295","full_name":"fcwu/django-realtime-tutorial","owner":"fcwu","description":"Copy from http://maxburstein.com/blog/realtime-django-using-nodejs-and-socketio/","archived":false,"fork":false,"pushed_at":"2014-03-11T09:54:35.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T04:30:04.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-11T09:41:46.000Z","updated_at":"2019-08-13T15:37:24.000Z","dependencies_parsed_at":"2022-09-03T02:01:58.479Z","dependency_job_id":null,"html_url":"https://github.com/fcwu/django-realtime-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcwu/django-realtime-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdjango-realtime-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdjango-realtime-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdjango-realtime-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdjango-realtime-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcwu","download_url":"https://codeload.github.com/fcwu/django-realtime-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdjango-realtime-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271672594,"owners_count":24800706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:53:00.949Z","updated_at":"2025-08-22T17:06:42.940Z","avatar_url":"https://github.com/fcwu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-realtime-tutorial\n========================\n\nCopy from http://maxburstein.com/blog/realtime-django-using-nodejs-and-socketio/\n\n```\n#https://docs.djangoproject.com/en/dev/topics/install/\nsudo apt-get install python-pip\nsudo pip install django\n   \n#http://redis.io/download\nsudo apt-get install redis-server\n     \n#https://github.com/andymccurdy/redis-py\nsudo pip install redis\n#https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager\nsudo apt-get install python-software-properties\nsudo add-apt-repository ppa:chris-lea/node.js\nsudo apt-get update\nsudo apt-get install nodejs\n     \n#https://github.com/LearnBoost/socket.io\nnpm install socket.io\n     \n#https://github.com/shtylman/node-cookie\nnpm install cookie\n```\n\nRunning\n```\npython manage.py syncdb\npython manage.py createsuperuser\npython manage.py runserver localhost:3000\ncd nodejs \u0026\u0026 node chat.js\n```\n\n\nCode flow\n---------\n\nsend message\n```\nYOU -\u003e index.html ---------------------\u003e chat.js ------\u003e views.py ------\u003e redis \n                socket.emit(\"send_message\")     django/node_api  channel/chat\n                                                                  ------\u003e sqlite\n                                                                 create comment in table core_message\n```\n\nreceive message\n```\nYOU -\u003e index.html \u003c---------- sqlite (at beginning)\n                   core_messages\n                  \u003c---------- chat.js\n                   subscribe/chat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcwu%2Fdjango-realtime-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcwu%2Fdjango-realtime-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcwu%2Fdjango-realtime-tutorial/lists"}