{"id":26522473,"url":"https://github.com/rahulsaini02/real-time-chatapp-using-websockets","last_synced_at":"2026-04-02T04:45:06.780Z","repository":{"id":283003209,"uuid":"950286065","full_name":"RahulSaini02/real-time-chatapp-using-websockets","owner":"RahulSaini02","description":"This repository contains a full-stack chat application with a Next.js frontend and a Flask backend. The project is designed for real-time messaging with cloud-based services.","archived":false,"fork":false,"pushed_at":"2025-04-07T05:03:58.000Z","size":13220,"stargazers_count":2,"open_issues_count":24,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T05:07:03.156Z","etag":null,"topics":["flask","javascript","nextjs","postgresql","python3","tailwindcss","typescript","websockets"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/RahulSaini02.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-17T23:32:05.000Z","updated_at":"2025-04-07T05:04:01.000Z","dependencies_parsed_at":"2025-08-23T05:07:04.734Z","dependency_job_id":null,"html_url":"https://github.com/RahulSaini02/real-time-chatapp-using-websockets","commit_stats":null,"previous_names":["rahulsaini02/real-time-chatapp-using-websockets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RahulSaini02/real-time-chatapp-using-websockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulSaini02%2Freal-time-chatapp-using-websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulSaini02%2Freal-time-chatapp-using-websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulSaini02%2Freal-time-chatapp-using-websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulSaini02%2Freal-time-chatapp-using-websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulSaini02","download_url":"https://codeload.github.com/RahulSaini02/real-time-chatapp-using-websockets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulSaini02%2Freal-time-chatapp-using-websockets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745481,"owners_count":24813501,"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-23T02:00:09.327Z","response_time":69,"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":["flask","javascript","nextjs","postgresql","python3","tailwindcss","typescript","websockets"],"created_at":"2025-03-21T13:27:09.453Z","updated_at":"2025-10-26T11:06:00.515Z","avatar_url":"https://github.com/RahulSaini02.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-Stack Chat Application\n\n## Overview\n\nThis repository contains a full-stack chat application with a Next.js frontend and a Flask backend. The project is designed for real-time messaging with cloud-based services.\n\n## Folder Structure\n\n```bash\nproject-root/\n│── client/       # Next.js frontend\n│── server/       # Flask backend\n│── .gitignore    # Git ignore file\n│── README.md     # Documentation\n└── package.json  # (Optional) If using workspace management\n```\n\n## Tech Stack\n\n### **Frontend (Client - Next.js)**\n\n- **Next.js** (React framework)\n- **TypeScript**\n- **Tailwind CSS**\n- **Heroicons**\n- **API requests with Axios**\n\n### **Backend (Server - Flask)**\n\n- **Flask** (Python framework)\n- **Flask-RESTful** for APIs\n- **DynamoDB** for database\n- **WebSockets** (for real-time chat)\n- **AWS Cognito** for authentication\n\n### **Cloud Services**\n\n- **AWS S3** (for media storage)\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone git@github.com:RahulSaini02/real-time-chatapp-using-websockets.git\ncd your-repo\n```\n\n### Setup the Client (Next.js)\n\n```bash\ncd client\nnpm install  # or yarn install\nnpm run dev  # Starts development server\n```\n\n- The frontend will run at \u003chttp://localhost:3000\u003e\n\n### Setup the Server (Flask)\n\n```bash\ncd ../server\npython -m venv venv  # Create virtual environment\nsource venv/bin/activate  # On Windows use: venv\\Scripts\\activate\npip install -r requirements.txt\npython app.py\n```\n\n- The backend will run at \u003chttp://localhost:5000\u003e\n\n### API Endpoints\n\n| Method   | Endpoint    | Description        |\n|----------|-------------|--------------------|\n| **POST** | `/login`    | User login         |\n| **POST** | `/register` | User signup        |\n| **GET**  | `/chats`    | Fetch user chats   |\n| **POST** | `/message`  | Send a new message |\n\n## 📌 Chat App - Database (PostgreSQL)\n\n### 🚀 Getting Started\n\n#### 1️⃣ Install PostgreSQL\n\nIf PostgreSQL is not installed, install it using:\n\n- MacOS (Homebrew)\n\n```bash\nbrew install postgresql\n```\n\n- Ubuntu/Debian\n\n```bash\nsudo apt update\nsudo apt install postgresql postgresql-contrib\n```\n\n- Windows (Chocolatey)\n\n```bash\nchoco install postgresql\n```\n\nAfter installation, start the PostgreSQL service:\n\n```bash\nsudo service postgresql start  # Ubuntu/Debian\nbrew services start postgresql  # MacOS\n```\n\n#### 2️⃣ Create a New Database\n\nLog into PostgreSQL:\n\n```bash\npsql -U postgres\n```\n\nThen, create a database for the chat app\n\n#### 4️⃣ Update Environment Variables\n\nIn the .env file, update:\n\n```python\nDATABASE_URL=postgresql://chat_user:securepassword@localhost/chat_app\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulsaini02%2Freal-time-chatapp-using-websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulsaini02%2Freal-time-chatapp-using-websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulsaini02%2Freal-time-chatapp-using-websockets/lists"}