Chat app using MERN and Socket.io
- 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
- MERN
- Socket.io
- ChakraUI
- React-Lottie
- JSON Web token
- Bcryptjs
VARIABLE | Sample value |
---|---|
MONGO_URI | mongodb://localhost/chatroom |
JWT_SECRET | **** |
NODE_ENV | production |
- Install Node.js
- Install npm
- If you plan to use a local instance of MongoDB database, install MongoDB atlas.
- Clone this github repo.
- In the local project directory, create a new file called "
.env
". - Setup the environment variables as described above.
- Open the local project directory in a terminal, and run:
npm install
.
cd client
Runs the front-end client app in the development mode.
Open http://localhost:3000 to view it in the browser.
cd server
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.