This is a real-time chat application developed using MERN stack. It allows user to register, login, send a message and file. It is designed using tailwind library.
Before running the application, make sure you have Node.js and MongoDB on your local computer, you can also use MongoDB atlas for the mongo url.
-
Clone the repository:
git clone https://github.com/gabrielpaor/MernChat.git -
Install dependencies:
cd server
npm install
cd client
npm install -
Start the server:
cd client
npm start
The server should be running onhttp://localhost:4000. -
Start the server:
cd server
npm run dev
The server should be running onhttp://localhost:5173.
I included the .env file in the repository for the convenience purposes.
To register or login, you can click the register button when the page render login and after submitting your registration, you will automatically logged in.
Once you're logged in, you should select a contact first before you can send a message. After selecting a contact person, you can then send a message or file.
To logout, click the logout button beside your username in the navbar section.