GithubHelp home page GithubHelp logo

yashsharma127 / chatswap Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.04 MB

ChatSwap: A real-time messaging app powered by React.js, Node.js, Socket.IO, and MongoDB, offering seamless communication with user authentication, emoji support, and easy logout functionality.

License: MIT License

HTML 4.57% CSS 1.20% JavaScript 94.23%
chat-room containerized docker docker-compose emoji-support mongodb nodejs reactjs real-time-messaging socket-io

chatswap's Introduction

ChatSwap

A simple full-stack chat application built with React.js for the frontend and Node.js with Socket.IO for the backend. This application allows users to chat in real-time, leveraging MongoDB for database storage. Application is created for application of socket.io for realtime chatting

User Interface

Features and Technologies used

  • Real-time chat functionality using Socket.IO.

  • User authentication.

  • MongoDB for database storage.

Prerequisites

Before you can use this application, ensure you have the following prerequisites:

  • Node.js and npm installed
  • MongoDB installed and running ( locally )
  • Docker installed and running (optional)
  • Git and GitHub account (for hosting)

Setup

  1. Clone this repository (if you haven't already):

    git clone https://github.com/yashsharma127/ChatSwap.git
    cd ChatSwap
  2. Now rename env files from .env.example to .env

     cd client
     mv .env.example .env
     cd ..
     cd server
     mv .env.example .env
     cd ..
  3. (optional) If want to run using docker:

    (note 1: remember to change MONGO_URL="mongodb://localhost:27017/chat" to MONGO_URL="mongodb://<host_machine_ip>:27017/chat" in server .env )

     docker-compose up

    (note 2: if got bcrypt error run docker exec -it <backend-container-id> npm rebuild bcrypt --build-from-source in terminal and re-run the above command)

  4. If want to run locally:

    For Frontend :

     cd client
     npm install
     npm start

    For Backend:

    cd server
    npm install
    npm start
    

Note

Make sure to configure MongoDB connection settings in server.js before running the server.

This application is a starting point and can be expanded with additional features and improvements. Happy chatting!

chatswap's People

Contributors

yashsharma127 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.