Chattr is a real-time chatting application built using the MERN stack with a modern UI, designed to provide a seamless communication experience. The project features a responsive interface, file sharing, and group messaging capabilities.
- Frontend: React, Tailwind CSS, Shadcn framework
- Backend: Node.js, Express.js, MongoDB
- Build Tool: Vite
- Encryption & Authentication: JWT tokens, bcrypt.js
- Login/Sign Up: Secure authentication system.
- Real-time Chat: Send text messages, images, and files.
- Group Messaging: Create channels with groups of people for collective communication.
- Node.js installed on your system.
- MongoDB instance for database connection.
git clone https://github.com/damarudhvarma/Chattr.git
cd chattr
- Navigate to the
client
directory:cd client
- Create a
.env
file inclient/
and add the following environment variable:VITE_SERVER_URL="<Your Backend Server URL>"
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Navigate to the
backend
directory:cd backend
- Create a
.env
file inbackend/
and add the following environment variables:PORT=<Server URL Port> JWT_KEY="<Your JWT Secret Key>" ORIGIN="<Your Frontend URL>" DATABASE_URI="<Your MongoDB URI>"
- Install dependencies:
npm install
- Start the backend server using Nodemon:
npx nodemon index.js
Once both the frontend and backend servers are running, you can access the application from your browser and start chatting in real-time!
Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.