GithubHelp home page GithubHelp logo

chat-page's Introduction

Name - Pratik Nand, Company - CODETECH IT SOLUTIONS, ID - CT08DS32, Domain - Web Development, Duration - 1 June to 13 July, Mentor - G. Sravani,

TASK 1 : Project Overview :

I developed a real-time Chat-Page with an Express.js backend and a React frontend, designed to support both one-on-one and group chats. The backend was built using Express.js and MongoDB, while the frontend utilized React and Chakra UI for a modern and responsive user interface.

Backend Details:

Express.js: Used to create the HTTP server and define API routes. MongoDB with Mongoose: Mongoose was used to define schemas and models for the application: User Schema: Fields include name, email, password, and pic (stored in Cloudinary). Chat Schema: Fields include chatName, isGroupChat, users, latestMessage, and groupAdmin. Message Schema: Fields include sender, content, and chat. Authentication: JWT for user authentication and Bcrypt for hashing passwords. CORS: Configured to allow requests from the frontend running on a different port. Middleware: Implemented for error handling and route protection. API Routes:

User Routes: For searching users and handling user operations. Chat Routes: For accessing and managing chats, including one-on-one and group chats. Endpoints like accessChat, createGroupChat, renameGroup, and removeFromGroup. Message Routes: For sending messages in both one-on-one and group chats. Frontend Details:

React: Built with a component-based architecture. Chakra UI: Used for styling and responsive design. State Management: Context API was used to manage the global state. Pages and Components: Chat Page UI: Includes components like SideDrawer, MyChats, and ChatBox. Group Chat UI: Specific UI for handling group chat functionalities. Real-Time Functionality:

Socket.io: Implemented for real-time messaging, typing indicators, and notifications. Real-Time Updates: Enabled for seamless user experience in chat and notification features. Functional Highlights:

One-on-One Chat: Users can initiate and participate in private chats. Group Chat: Users can create groups, add or remove members, and engage in group conversations. Typing Indicator: Shows when a user is typing in a chat, making the chat more interactive. Real-Time Notifications: Added for new messages and activities, enhancing user engagement.

Screenshot (275) Screenshot (274)

chat-page's People

Contributors

iampratik2003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.