Skip to content

Kunal-Vijay/Chatmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat app using MERN and Socket.io

Visit the live website


Features

  • Real Time Message sending using socket.io
  • Secure communication with JWT and Bcryptjs authentication. Ensured privacy, user authenticity, and information protection in the chat application.
  • Group chat as well as one-to-one chat functionality
  • Real Time Notifications

Tech Stack

  • MERN
  • Socket.io
  • ChakraUI
  • React-Lottie
  • JSON Web token
  • Bcryptjs

Required Environment Variables

VARIABLE Sample value
MONGO_URI mongodb://localhost/chatroom
JWT_SECRET ****
NODE_ENV production

Installation Instructions

  1. Install Node.js
  2. Install npm
  3. If you plan to use a local instance of MongoDB database, install MongoDB atlas.
  4. Clone this github repo.
  5. In the local project directory, create a new file called ".env".
  6. Setup the environment variables as described above.
  7. Open the local project directory in a terminal, and run: npm install.

Available Scripts

In the project directory, you can run:

cd client

npm run start

Runs the front-end client app in the development mode.
Open http://localhost:3000 to view it in the browser.

cd server

nodemon index.js

Runs the back-end server app in the development mode.
Open http://localhost:5000 to view it in the browser. Please note that the server requires an active instance of the MongoDB database. Either provide a MongoDB atlas link in the URI environment variable, or use a local database, by placing its DATABASE in the same.

Application Screenshots

image image image


About

Chatapp using MERN and socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published