{"id":25726935,"url":"https://github.com/brendandasilva/chat_app_socketio","last_synced_at":"2026-04-12T00:02:12.998Z","repository":{"id":279241017,"uuid":"927737709","full_name":"BrendanDasilva/Chat_App_Socketio","owner":"BrendanDasilva","description":"Chat application using socket.io for full stack II","archived":false,"fork":false,"pushed_at":"2025-02-24T14:29:22.000Z","size":24971,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T15:38:33.780Z","etag":null,"topics":["apollo-server","bcrypt","bootstrap","css","express","html","javascript","mongoose","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/BrendanDasilva.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-05T13:14:05.000Z","updated_at":"2025-02-24T14:30:06.000Z","dependencies_parsed_at":"2025-02-24T15:49:15.033Z","dependency_job_id":null,"html_url":"https://github.com/BrendanDasilva/Chat_App_Socketio","commit_stats":null,"previous_names":["brendandasilva/chat_app_socketio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrendanDasilva/Chat_App_Socketio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrendanDasilva%2FChat_App_Socketio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrendanDasilva%2FChat_App_Socketio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrendanDasilva%2FChat_App_Socketio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrendanDasilva%2FChat_App_Socketio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrendanDasilva","download_url":"https://codeload.github.com/BrendanDasilva/Chat_App_Socketio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrendanDasilva%2FChat_App_Socketio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271664889,"owners_count":24799298,"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":["apollo-server","bcrypt","bootstrap","css","express","html","javascript","mongoose","socket-io"],"created_at":"2025-02-25T23:27:54.427Z","updated_at":"2026-04-12T00:02:07.935Z","avatar_url":"https://github.com/BrendanDasilva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Real-Time Chat Application**\n\n## **Overview**\n\nThis is a **real-time chat application** built using **Node.js**, **Express.js**, **MongoDB**, and **Socket.io**, with **Bootstrap** for styling. Users can sign up, log in, and join different chat rooms for public discussions or private one-on-one conversations. The app features real-time messaging, online user tracking, private messaging, and a **typing indicator**.\n\nThis was originally a 12-hour lab test for Full Stack Dev II, but I decided to further build it out afterwards as a mini personal project to include in my portfolio.\n\n**_First Pass_**\nYou can view a quick walkthrough of the **first pass** here: https://youtu.be/wrBkJihn8Zo\n\n**_Second Pass_**\nYou can view a **quick walkthrough** of the application here:  \nhttps://youtu.be/sDEHsHfma54\n\n## **Screenshots**\n\nBelow are some previews of the application:\n\n- **Sign Up Page**  \n  ![Sign Up](public/assets/screenshots/signup.png)\n\n- **Login Page**  \n  ![Login](public/assets/screenshots/login.png)\n\n- **Rooms Lobby**  \n  ![Rooms Lobby](public/assets/screenshots/rooms-lobby.png)\n\n- **Group Chat**  \n  ![Group Chat](public/assets/screenshots/group-chat.png)\n\n- **Private Messages**\n  ![Private Messages](public/assets/screenshots/private-messages.png)\n\n- **Private Chat**\n  ![Private Chat](public/assets/screenshots/private-chat.png)\n\n---\n\n## **Features**\n\n### **User Authentication**\n\n- Secure **sign-up and login** with **bcrypt.js** password hashing.\n- **Session-based authentication** using `sessionStorage`.\n\n### **Real-Time Messaging**\n\n- **Instant chat updates** with **Socket.io**.\n- **Public group chat rooms** with message history.\n- **Private one-on-one messaging**, with **message history retrieval**.\n\n### **Chat Rooms**\n\n- Users can join **various themed chat rooms**, including:\n  - **Sports**\n  - **Technology**\n  - **Movies**\n  - **Gaming**\n  - **Random**\n  - **Music**\n  - **News**\n  - **Health**\n  - **Travel**\n  - **Food**\n  - **Fitness**\n  - **Education**\n  - **Business**\n- Each **room has its own chat history** stored in MongoDB.\n\n### **Private Messaging**\n\n- Users can start **one-on-one conversations**.\n- **Previous conversations are saved** and accessible from the private messages list.\n- New **messages appear instantly**, with **notifications** for unread messages.\n\n### **Online Users List**\n\n- Displays **active users**, their **current room**, and **green online indicators**.\n- Users **cannot see themselves** in the list to avoid redundancy.\n\n### **Typing Indicator**\n\n- Shows **who is typing** in real time.\n- The indicator **disappears** when the user stops typing.\n\n### **Dynamic UI \u0026 Responsiveness**\n\n- **Grid layout for chat rooms**, adjusting based on screen size.\n- **Mobile-responsive hamburger menu** for the online users list.\n- **Chat messages alternate positions** (incoming on the left, outgoing on the right).\n\n---\n\n## **Installation \u0026 Setup**\n\n### **Prerequisites**\n\n- [**Node.js**](https://nodejs.org/) (Ensure it’s installed)\n- **MongoDB** (Local or [MongoDB Atlas](https://www.mongodb.com/atlas/database))\n\n### **Setup Steps**\n\n1. **Clone this repository:**\n   ```sh\n   git clone https://github.com/BrendanDasilva/chat-app.git\n   cd chat-app\n   ```\n\n### **2️⃣ Install Dependencies**\n\n```sh\nnpm install\n```\n\n### **3️⃣ Configure Environment Variables**\n\nCreate a `.env` file in the root directory and add the following:\n\n```plaintext\nPORT=3000\nMONGO_URI=mongodb+srv://\u003cyour_username\u003e:\u003cyour_password\u003e@cluster0.mongodb.net/your_database?retryWrites=true\u0026w=majority\n```\n\nReplace placeholders with your actual **MongoDB credentials** and **JWT secret**.\n\n### **4️⃣ Start the Server**\n\n```sh\nnode server.js\n```\n\n## 📂 Project Structure\n\n```\nchat-app/\n│-- config/\n│ ├── db.js # Database connection setup\n│-- models/\n│ ├── User.js # User schema\n│ ├── GroupMessage.js # Group message schema\n│ ├── PrivateMessage.js # Private message schema\n│-- public/\n│ ├── styles.css # CSS styles\n│ ├── script.js # Frontend JavaScript\n│-- views/\n│ ├── login.html # Login page\n│ ├── signup.html # Signup page\n│ ├── rooms.html # Room selection page\n│ ├── chat.html # Group chat page\n│ ├── chat_private.html # Private chat page\n│ ├── private_messages.html # Private messages list\n│-- server.js # Main Express server\n│-- package.json # Dependencies\n```\n\n---\n\n## 🛠 **Tech Stack**\n\n- **Backend**: Node.js, Express.js, MongoDB, Mongoose, bcrypt.js, dotenv\n- **Frontend**: HTML, CSS (Bootstrap), JavaScript\n- **Database**: MongoDB (Atlas) \u0026 Mongoose\n- **Real-Time Communication**: Socket.io\n\n---\n\n## 👨‍💻 **Author**\n\n**Brendan Dasilva**\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendandasilva%2Fchat_app_socketio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrendandasilva%2Fchat_app_socketio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendandasilva%2Fchat_app_socketio/lists"}