{"id":25216396,"url":"https://github.com/ramzibouzaiene/chat-app","last_synced_at":"2026-04-09T17:04:26.517Z","repository":{"id":275974616,"uuid":"927813168","full_name":"ramzibouzaiene/chat-app","owner":"ramzibouzaiene","description":"A real-time chat application with a TypeScript-powered Express backend and React Native mobile client, featuring instant messaging using Socket.io.","archived":false,"fork":false,"pushed_at":"2025-02-05T15:34:41.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T16:22:41.063Z","etag":null,"topics":["expressjs","mongodb","nodejs","react-native","socket-io","typescript"],"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/ramzibouzaiene.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}},"created_at":"2025-02-05T15:32:34.000Z","updated_at":"2025-02-05T15:35:33.000Z","dependencies_parsed_at":"2025-02-05T16:22:44.725Z","dependency_job_id":"2d2dbb2d-2bc1-48e4-985b-3efbcaaecf88","html_url":"https://github.com/ramzibouzaiene/chat-app","commit_stats":null,"previous_names":["ramzibouzaiene/chat-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramzibouzaiene%2Fchat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramzibouzaiene%2Fchat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramzibouzaiene%2Fchat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramzibouzaiene%2Fchat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramzibouzaiene","download_url":"https://codeload.github.com/ramzibouzaiene/chat-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312071,"owners_count":20918344,"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":["expressjs","mongodb","nodejs","react-native","socket-io","typescript"],"created_at":"2025-02-10T19:17:58.405Z","updated_at":"2025-12-30T19:04:33.166Z","avatar_url":"https://github.com/ramzibouzaiene.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat App ( In Progress )\n\nThe project combines a TypeScript backend for reliable server-side operations with React Native's cross-platform capabilities, using Socket.io for instant bidirectional communication between mobile clients and the server.\n\n## Overview\n\nThis is a real-time chat application built using:\n\n- **Backend:** Express.js with TypeScript\n- **Frontend:** React Native\n- **Real-time Communication:** Socket.IO\n\n## Features\n\n- User authentication (JWT)\n- Real-time messaging\n- Online/offline status\n- Room Chats\n\n## Tech Stack\n\n### Backend:\n\n- Node.js\n- Express.js\n- TypeScript\n- Socket.IO\n- MongoDB\n\n### Mobile:\n\n- React Native\n- React Navigation\n- Socket.IO-client\n\n## Installation\n\n### Backend Setup\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/ramzibouzaiene/chat-app.git\n   cd chat-app/Back\n   ```\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Create a `.env` file and configure environment variables:\n   ```env\n   PORT=5000\n   MONGO_URI=your_database_uri\n   JWT_SECRET=your_secret\n   NODE_ENV=your_dev_env\n   ```\n4. Start the server:\n   ```sh\n   npm run dev\n   ```\n\n### Mobile Setup\n\n1. Navigate to the mobile directory:\n   ```sh\n   cd chat-app/Mobile\n   ```\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Start the React Native app:\n   ```sh\n   npx react-native start\n   ```\n4. Run on emulator or device:\n   ```sh\n   npx react-native run-android  # For Android\n   npx react-native run-ios      # For iOS\n   ```\n\n## WebSocket Events\n\n### Backend Events:\n\n- `connection`: Triggered when a user connects.\n- `join`: A user joins a chat room.\n- `message`: Sent when a user sends a message.\n- `disconnect`: Triggered when a user disconnects.\n\n### Frontend Events:\n\n- `joinChat({ name, roomId })`: Sends a request to join a chat room.\n- `sendMessage({ roomId, senderId, username, text })`: Sends a message to the server.\n- `receiveMessage(data)`: Receives a message from the server.\n- `userTyping(userId)`: Notifies when a user is typing.\n\n## API Endpoints\n\n| Method | Endpoint                   | Description                       |\n| ------ | -------------------------- | --------------------------------- |\n| POST   | `/joinChat`                | Adds a user to a chat room.       |\n| POST   | `/sendMessage`             | Sends a message in a chat room.   |\n| GET    | `/getRoomMessages/:roomId` | Fetches messages from a room.     |\n| GET    | `/getRooms`                | Fetches all available chat rooms. |\n| POST   | `/createRoom`              | Creates a new chat room.          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framzibouzaiene%2Fchat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framzibouzaiene%2Fchat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framzibouzaiene%2Fchat-app/lists"}