{"id":23529454,"url":"https://github.com/tyronejosee/prototype_websockets","last_synced_at":"2026-03-15T22:47:28.490Z","repository":{"id":268029143,"uuid":"903072457","full_name":"tyronejosee/prototype_websockets","owner":"tyronejosee","description":"Prototype for WebSockets using Django and React. Demonstrates real-time communication between the backend and frontend.","archived":false,"fork":false,"pushed_at":"2025-01-03T20:36:55.000Z","size":70,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T12:21:25.087Z","etag":null,"topics":["django","javascript","python","react","sqlite","typescript","websockets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyronejosee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-13T21:53:02.000Z","updated_at":"2025-03-15T20:57:06.000Z","dependencies_parsed_at":"2025-05-14T12:21:27.005Z","dependency_job_id":"bea218e2-4903-4b86-bae0-053b350e7e62","html_url":"https://github.com/tyronejosee/prototype_websockets","commit_stats":null,"previous_names":["tyronejosee/prototype_websockets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyronejosee/prototype_websockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyronejosee%2Fprototype_websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyronejosee%2Fprototype_websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyronejosee%2Fprototype_websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyronejosee%2Fprototype_websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyronejosee","download_url":"https://codeload.github.com/tyronejosee/prototype_websockets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyronejosee%2Fprototype_websockets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265500606,"owners_count":23777518,"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","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":["django","javascript","python","react","sqlite","typescript","websockets"],"created_at":"2024-12-25T21:11:53.162Z","updated_at":"2026-03-15T22:47:28.484Z","avatar_url":"https://github.com/tyronejosee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tyronejosee/prototype_actix_web\" target=\"_blank\"\u003e\n    \u003cimg src=\"icon.svg\" alt=\"logo\" width=\"80\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003cstrong\u003ePrototype WebSockets\u003c/strong\u003e\u003c/h1\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\nA complete real-time chat application built with Django (backend) and React (frontend). Features include user authentication, private messaging, real-time communication via WebSockets, and a clean, modern UI.\n\u003cp\u003e\n\n![Main](main.webp)\n\nWebSockets are a communication protocol that enables bidirectional and persistent communication between a server and a client over a single TCP connection. Unlike traditional methods such as HTTP, where the client makes a request and the server responds, WebSockets allow real-time communication, where the server can send data to the client at any moment without requiring the client to make a new request.\n\n## ✨ Features\n\n### Backend\n\n- **User Authentication**: Registration and login with JWT tokens\n- **WebSocket Support**: Real-time messaging using Django Channels\n- **Private Chat**: Direct messages between users\n- **Message Storage**: Persistent message history in database\n- **REST API**: Endpoints for user management and message retrieval\n- **Online Status**: Track user online/offline status\n\n### Frontend\n\n- **Authentication UI**: Login and registration forms\n- **User Management**: View list of available users\n- **Real-time Chat**: Instant messaging with WebSocket connection\n- **Message History**: Load and display previous conversations\n- **Typing Indicators**: See when someone is typing\n- **Responsive Design**: Works on desktop and mobile devices\n\n## ✅ Prerequisites\n\n- Python 3.8+\n- Node.js 14+\n- Redis server\n\n## ⚙️ Installation\n\n### 🗄️ Backend Setup\n\nNavigate to backend directory.\n\n```bash\ncd backend\n```\n\nCreate virtual environment.\n\n```bash\npython -m venv venv\n\n# Windows\nvenv\\Scripts\\activate\n\n# Linux/Mac\nsource venv/bin/activate\n```\n\nInstall dependencies.\n\n```bash\npip install -r requirements.txt\n```\n\nRun migrations.\n\n```bash\npython manage.py makemigrations\npython manage.py migrate\n```\n\nCreate superuser.\n\n```bash\npython manage.py createsuperuser\n```\n\nStart development server.\n\n```bash\npython manage.py runserver\n```\n\n### 🎨 Frontend Setup\n\nNavigate to frontend directory\n\n```bash\ncd frontend\n```\n\nInstall dependencies.\n\n```bash\nnpm install\n```\n\nStart development server.\n\n```bash\nnpm run dev\n```\n\n## ⚖️ License\n\nThis project is under the [MIT License](LICENSE).\n\nEnjoy! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyronejosee%2Fprototype_websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyronejosee%2Fprototype_websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyronejosee%2Fprototype_websockets/lists"}