{"id":18563588,"url":"https://github.com/ishanoshada/chat-web-server","last_synced_at":"2025-04-10T03:32:52.947Z","repository":{"id":184524214,"uuid":"671957925","full_name":"Ishanoshada/Chat-Web-Server","owner":"Ishanoshada","description":"A Flask-based chat server supporting user authentication, signup, and chat functionality. Users can choose between JSON file and MongoDB as storage methods for user data.","archived":false,"fork":false,"pushed_at":"2024-07-10T08:33:00.000Z","size":40,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T16:03:26.864Z","etag":null,"topics":["access-token","backend","chat","chat-server","flask","flask-application","json","mongodb","python","python-flask","user-authentication"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Ishanoshada.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":"2023-07-28T14:41:10.000Z","updated_at":"2024-08-08T16:37:11.000Z","dependencies_parsed_at":"2024-11-06T22:23:08.023Z","dependency_job_id":null,"html_url":"https://github.com/Ishanoshada/Chat-Web-Server","commit_stats":null,"previous_names":["ishanoshada/chat_web_server","ishanoshada/chat-web-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FChat-Web-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FChat-Web-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FChat-Web-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ishanoshada%2FChat-Web-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ishanoshada","download_url":"https://codeload.github.com/Ishanoshada/Chat-Web-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151458,"owners_count":21056103,"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":["access-token","backend","chat","chat-server","flask","flask-application","json","mongodb","python","python-flask","user-authentication"],"created_at":"2024-11-06T22:12:58.536Z","updated_at":"2025-04-10T03:32:52.666Z","avatar_url":"https://github.com/Ishanoshada.png","language":"HTML","readme":"# Chat Web Server - Flask Web App \n\n\n![Python Version](https://img.shields.io/badge/python-3.9-blue.svg)\n![Flask Version](https://img.shields.io/badge/flask-2.0-orange.svg)\n\nChat Web server is a simple Flask web application for real-time chat. It allows users to sign up, log in, and send messages in a chat room. Messages are persisted using either JSON file or MongoDB, making it easy to choose the storage method that suits your needs.\n\n## Features\n\n- User Signup: New users can create an account by providing their email, username, and password.\n\n- User Login: Registered users can log in using their username or email along with the password.\n\n- Real-time Chat: Users can send and receive messages in real-time within the chat room.\n\n- Message Deletion: Users can delete their own messages, and the chat updates instantly for all participants.\n\n- XSS Protection: The application is protected against Cross-Site Scripting (XSS) attacks using custom escape functions.\n\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.x\n- Flask\n- MongoDB or JSON File\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ishanoshada/Chat-Web-Server.git\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Set up MongoDB (optional):\n   - If you prefer to use MongoDB as the message storage method, make sure you have MongoDB installed and running on your machine. Update the `MONGODB_URI` variable in the `app.py` file with your MongoDB connection string.\n\n## Usage\n\n1. Run the Flask app:\n   ```bash\n   python app.py\n   ```\n\n2. Open your web browser and navigate to `http://127.0.0.1:5000/` to access the chat app.\n\n3. Sign up or log in to start using the chat room.\n\n## Folder Structure\n\n```\nChat-Web-server/\n│\n├── app.py\n├── templates/\n│   ├── index.html\n│   ├── login.html\n│   ├── signup.html\n│   └── navbar.html\n│\n├── data/\n│   ├── user_data.json\n│   └── chats.json\n│\n├── requirements.txt\n├── README.md\n└── .gitignore\n```\n## Screenshots\n\n![Screenshot](https://raw.githubusercontent.com/Ishanoshada/Ishanoshada/main/ss/IMG_20230729_003714.jpg)\n\n**Repository Views** ![Views](https://profile-counter.glitch.me/Chatwebserver/count.svg)\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.\n\n## Acknowledgments\n\n- Thanks to the Flask and MongoDB communities for providing excellent resources and documentation.\n- Inspiration for this project came from the need for a simple and secure real-time chat application.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n**OneOne is impressive** 🚀 Give it a ⭐️ if you liked it! Thanks for stopping by! For more projects, visit [GitHub Profile](https://github.com/ishanoshada).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishanoshada%2Fchat-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishanoshada%2Fchat-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishanoshada%2Fchat-web-server/lists"}