Code Monkey home page Code Monkey logo

tomper-chat's Introduction

WhatsApp clone build using MERN stack

tomper-chat.onrender.com


This is the frontend + backend of TomperChat build with MERN stack and hosted with Render



๐Ÿงพ Description

TomperChat is a clone of WhatsApp. Its build using MERN stack and uses socket.io for realtime messaging, online statuses, typing indicators, notifications etc.

โœจ Features

  • User authentication.
  • Search for users to chat with.
  • Create a group-chat.
  • Only group-chat admin can edit the group chat details like name or add/remove users.
  • Uninterested users can leave the group-chat.
  • Chat in realtime with socket.io.
  • User's realtime online/offline status in private chat.
  • Users realtime typing indicator in both private and group chats.
  • Realtime chat notifications for both private and group chat.
  • Responsive for all screen sizes.
  • And most importantly ๐Ÿ˜Ž Feels just like whatsapp-web (or Desktop app).

๐Ÿ™„ TODO

  • Users can delete messages.
  • Group admins can delete group-chat.

โš™ Tools and Technologies used

Frontend
  1. React.js
  2. Chakra-ui
  3. React-icons
Backend
  1. Node.js
  2. Express.js
  3. MongoDB
  4. JWT
  5. Socket.io
  6. Cloudinary
  7. Bcrypt.js

๐Ÿ›  Installation and setup

  1. Clone the repo to your local machine.

  2. Install the required dependency for server using :

    npm install
  3. Install the required dependency for client using :

    cd client
    npm install
  4. Create a .env file inside the root folder and provide the following environment variables:

    PORT=5000
    DB_URI=<mongodb_uri>
    JWT_SECRET=<your_jwt_secret>
    JWT_EXPIRE=5d
    COOKIE_EXPIRE=5
    NODE_ENV=development
    CLOUDINARY_CLOUD_NAME=<your_cloudinary_cloudname>
    CLOUDINARY_API_KEY=<your_cloudinary_api_key>
    CLOUDINARY_API_SECRET=<your_cloudinary_api_secret>
    FRONTEND_URL=http://localhost:3000
  5. Start the express server using :

    npm start
  6. Start the react development server using:

    cd client
    npm start
    

๐ŸŽ Creating production built

  1. Create a production build react app using the command :

    cd client
    npm run build
  2. Change the value of following environment variables:

    NODE_ENV=production



(If you liked the project, give it star ๐Ÿ˜ƒ)

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.