{"id":23938032,"url":"https://github.com/medhansh-32/webchat","last_synced_at":"2026-04-18T02:32:59.747Z","repository":{"id":257157786,"uuid":"857474960","full_name":"Medhansh-32/WebChat","owner":"Medhansh-32","description":"WebChat is a real-time chat application built with HTML, CSS, JavaScript, and powered by Spring Boot and Java for backend functionality. It ensures seamless communication ,image sharing and user interaction.","archived":false,"fork":false,"pushed_at":"2024-12-25T16:06:31.000Z","size":99399,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T04:46:44.652Z","etag":null,"topics":["java","maven","mysql","spring-boot","spring-security","websocket"],"latest_commit_sha":null,"homepage":"https://webchattings.onrender.com/","language":"Java","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/Medhansh-32.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":"2024-09-14T18:55:14.000Z","updated_at":"2025-07-21T08:20:11.000Z","dependencies_parsed_at":"2024-09-17T20:49:17.214Z","dependency_job_id":"07edcde4-8da7-4a13-b805-445644450cce","html_url":"https://github.com/Medhansh-32/WebChat","commit_stats":null,"previous_names":["medhansh-32/webchat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Medhansh-32/WebChat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Medhansh-32%2FWebChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Medhansh-32%2FWebChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Medhansh-32%2FWebChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Medhansh-32%2FWebChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Medhansh-32","download_url":"https://codeload.github.com/Medhansh-32/WebChat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Medhansh-32%2FWebChat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["java","maven","mysql","spring-boot","spring-security","websocket"],"created_at":"2025-01-06T02:17:49.987Z","updated_at":"2026-04-18T02:32:59.728Z","avatar_url":"https://github.com/Medhansh-32.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebChat💭\n\n**WebChat** is a real-time chat and image-sharing application built using Spring Boot and modern web technologies. This project demonstrates seamless integration of backend and frontend systems with cloud services to deliver a smooth and feature-rich user experience.\n\n---\n\n## Login Page\n\n\u003cimg src=\"/src/main/resources/static/images/login.png\" width=\"500\"/\u003e\n\n\n## User Interface\n\n\u003cimg src=\"/src/main/resources/static/images/userInterface.png\" width=\"1000\"/\u003e\n\n\n## Table of Contents\n\n\n1. [Features](#features)\n2. [Technologies Used](#technologies-used)\n3. [Project Architecture](#project-architecture)\n4. [Installation and Setup](#installation-and-setup)\n5. [Usage](#usage)\n6. [Endpoints](#endpoints)\n7. [Contributing](#contributing)\n\n\n---\n\n## Features\n\n- **Real-Time Chat:** Send and receive messages instantly using WebSocket.\n- **Image Sharing:** Upload and share images seamlessly using Imgur's cloud services.\n- **Contact Management:** Manage contacts to streamline conversations.\n- **Responsive UI:** Built with HTML, CSS, and JavaScript for a modern and intuitive front-end experience.\n\n---\n\n## Technologies Used\n\n### Backend:\n- **Java:** Programming language used for the application.\n- **Spring Boot:** Framework for rapid application development.\n  - **Spring Web:** For RESTful APIs.\n  - **Spring WebSocket:** For real-time communication.\n  - **Spring Data JPA:** For database interactions.\n- **Lombok:** Reduces boilerplate code.\n\n### Database:\n- **MySQL (Aiven Cloud):** Cloud-hosted MySQL for efficient and reliable database operations.\n\n### Frontend:\n- **HTML, CSS, JavaScript:** To design and create a responsive and interactive user interface.\n\n### Cloud Services:\n- **Imgur API:** Used for uploading and storing images in the cloud.\n\n### Build Tool:\n- **Maven:** Dependency management and project building.\n\n---\n\n## Project Architecture\n\n**Frontend:**\n- HTML/CSS/JavaScript\n- Interacts with backend via REST APIs and WebSocket.\n\n**Backend:**\n- Java with Spring Boot\n  - REST APIs\n  - WebSocket endpoints\n  - Database interactions using Spring Data JPA.\n\n**Database:**\n- MySQL hosted on Aiven Cloud.\n\n**Cloud Integration:**\n- Imgur API for image sharing and storage.\n\n---\n\n## Installation and Setup\n\n### Prerequisites\n\n- Java 17 or higher.\n- Maven 3.8 or higher.\n- MySQL database (details configured in the application).\n- Imgur API credentials (client ID and client secret).\n\n### Steps\n\n1. Clone the repository:\n\n   ```sh\n   https://github.com/Medhansh-32/WebChat.git\n   cd webchat\n\n### Set up your database:\n\n1. Create a MySQL database for the application.\n2. Update the `application.properties` file with your database URL, username, and password:\n\n    ```properties\n    spring.datasource.url=jdbc:mysql://\u003chostname\u003e:\u003cport\u003e/\u003cdbname\u003e\n    spring.datasource.username=\u003cusername\u003e\n    spring.datasource.password=\u003cpassword\u003e\n    spring.jpa.hibernate.ddl-auto=update\n    ```\n\n### Configure Imgur:\n\n1. Obtain Imgur API credentials (client ID and client secret).\n2. Add them to the `application.properties` file:\n\n    ```properties\n    imgur.client.id=your-client-id\n    imgur.client.secret=your-client-secret\n    ```\n\n### Build the project:\n\n1. Use Maven to build the project:\n\n    ```sh\n    mvn clean install\n    ```\n\n### Run the application:\n\n1. Once the project is built, run the backend server:\n\n    ```sh\n    mvn spring-boot:run\n    ```\n\n    The application will be available at (http://localhost:8080).\n\n### Usage\n\n- Register and log in to the WebChat application.\n- Manage your contacts by adding new ones or deleting old ones in the contact section.\n- Start real-time chats using the chat interface.\n- Share images via the Imgur-integrated upload feature.\n- Download images by right-clicking on the image .\n\n### Endpoints\n\n#### Public Endpoints:\n\n- **POST /users/register** - Register a new user.\n- **POST /users/login** - Login to the application.\n\n#### Protected Endpoints:\n\n- **GET /users/data** - Retrieve user data.\n- **POST /users/addContact** - Add a new contact.\n- **DELETE /users/deleteContact/{contactName}** - Delete a specific contact.\n- **POST /chat/sendMessage** - Send a message via WebSocket.\n- **POST /images/upload** - Upload and share an image.\n\n### Contributing\n\nWe welcome contributions! To contribute:\n\n1. Fork the repository.\n2. Create a feature branch (`git checkout -b feature-name`).\n3. Commit your changes (`git commit -m 'Add feature'`).\n4. Push to the branch (`git push origin feature-name`).\n5. Open a pull request.\n\n---\n\n### Let's Interact!\n\n❤️ **Contribute:** Every little bit helps. Whether it's a small fix or a major feature, we welcome all contributions. Don't hesitate to open an issue or submit a pull request.\n\n🤝 **Collaborate:** Have ideas? Share them with us! Let's build something amazing together.\n\n🌟 **Spread the Word:** If you like this project, please give it a star on GitHub and share it with others.\n\n---\n\nThank you for your support! Let's make this project awesome together! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedhansh-32%2Fwebchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedhansh-32%2Fwebchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedhansh-32%2Fwebchat/lists"}