This repository contains a chat application which is created using MongoDB, Socket.io and Express that supports real-time chatting.
- HTML, CSS (for front-end interface)
- Node.js and Express.js (for back-end server)
- Socket.io (for real-time interaction between the client and the server)
- MongoDB (as database to store chats, online users etc.)
- User can chat in a public conversation room.
- User can create a new public conversation room.(but cannot add other users)
- User can join an existing public conversation room.
- User can view other users who are online in the room.
- User can view other rooms which are active at that point of time.
- User can know the room they are in.
- Install Node.js and MongoDB on your system(or you could use MongoDB Atlas). Check using the following commands in the terminal -
$ node -v
$ mongod --version- Open your terminal and run the following - fork the repo
$ git clone <clone link>
$ cd <project path>
$ npm install-
. Go to config/keys.js and paste ur MongoDB URL.
$ node server/server.js
- Now, the server is running, open the link http://localhost:6969 to access the application