{"id":27096108,"url":"https://github.com/karan19698/spring-chat-app","last_synced_at":"2026-04-11T03:34:55.534Z","repository":{"id":284213323,"uuid":"954203237","full_name":"karanshah1561998/spring-chat-app","owner":"karanshah1561998","description":"Real-time chat app using Spring Boot, WebSocket \u0026 STOMP with Docker-based deployment.","archived":false,"fork":false,"pushed_at":"2025-04-04T21:30:55.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:28:09.499Z","etag":null,"topics":["docker","java","maven","render","springboot","stomp","websocket"],"latest_commit_sha":null,"homepage":"https://spring-chat-app.onrender.com","language":"CSS","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/karanshah1561998.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-03-24T18:05:46.000Z","updated_at":"2025-04-04T21:30:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"88d35d62-abbb-40b9-a656-079de89214a8","html_url":"https://github.com/karanshah1561998/spring-chat-app","commit_stats":null,"previous_names":["karanshah1561998/spring-chat-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanshah1561998%2Fspring-chat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanshah1561998%2Fspring-chat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanshah1561998%2Fspring-chat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanshah1561998%2Fspring-chat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karanshah1561998","download_url":"https://codeload.github.com/karanshah1561998/spring-chat-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247458667,"owners_count":20942069,"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":["docker","java","maven","render","springboot","stomp","websocket"],"created_at":"2025-04-06T09:20:54.932Z","updated_at":"2025-12-30T23:06:59.571Z","avatar_url":"https://github.com/karanshah1561998.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💬 Spring Boot Chat App\nA real-time chat application built with **Spring Boot**, **WebSockets**, and **STOMP messaging protocol**. This project demonstrates how to build a scalable backend with real-time communication. Users can exchange messages instantly through a WebSocket connection.\n\n## 🚀 Live Demo\nAccess the live app here: [Spring Boot Chat App](https://spring-chat-app.onrender.com)\n\n## ✨ Features\n- Real-time messaging with WebSocket + STOMP\n- Join Notifications for New Users\n- Simple Frontend UI (Vanilla JS + HTML)\n- Dockerized for easy deployment\n\n## 🛠 Tech Stack\n- Backend: Spring Boot, WebSocket, STOMP\n- Deployment: Docker, Render\n- Build Tool: Maven\n- Java 17+\n\n## ⚙️ Installation\n### Prerequisites\n**Ensure you have the following installed:**\n- Java 17+\n- Maven\n- Docker (for containerized deployment)\n\n### Setup\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/karanshah1561998/spring-chat-app.git\n   cd spring-chat-app\n\n2. **Run Locally (Dev Mode):**\n   ```bash\n   ./mvnw spring-boot:run\n   Then open your browser at:📍 http://localhost:8080\n\n3. **Run with Docker:**\n   ```bash\n   ./mvnw clean package\n   docker build -t spring-chat-app .\n   docker run -p 8080:8080 spring-chat-app\n\n## 🧩 Troubleshooting\n\n### 1. WebSocket Not Connecting\n- Ensure the WebSocket endpoint in your frontend matches the backend (`ws://localhost:8080/ws`).\n- Check browser console for CORS or STOMP errors.\n\n### 2. Port 8080 Already in Use\n- Another service might be using port 8080.\n- Either kill the conflicting process or change the server port in `application.properties`.\n\n### 3. Docker Image Build Fails\n- Make sure you've run `./mvnw clean package` before building the Docker image.\n- Verify Docker is running and accessible from your terminal.\n\n### 4. Frontend Not Loading\n- Ensure `index.html` is present in the `resources/static/` directory.\n- Check if Spring Boot is correctly serving static resources.\n\n### 5. Messages Not Being Broadcasted\n- Confirm STOMP endpoints and destinations are correctly mapped.\n- Check backend logs for any message mapping or subscription errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran19698%2Fspring-chat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran19698%2Fspring-chat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran19698%2Fspring-chat-app/lists"}