Chatit is a real-time chat application built using the MERN stack (MongoDB, Express, React, Node.js) that allows users to seamlessly connect with friends, family, colleagues, and AI. This app supports live messaging and user authentication creating an engaging and interactive chat experience.
- Real-time Chat: Instant messaging with friends, colleagues, and family.
- AI Integration: Chat with an AI for fun, assistance, or advice.
- User Authentication: Secure login and signup with user sessions.
- Customizable Profiles: Users can set up their profiles and update information.
- Responsive Design: Works smoothly on both mobile and desktop devices.
Client: React, Redux, TailwindCSS, Axios
Server: Node, Express
Database: MongoDB
Real-time Communication: Socket.IO
AI Integration: API integration with AI model
- Node.js and npm installed on your machine.
- MongoDB installed and running locally or have access to a MongoDB Atlas cluster.
git clone https://github.com/jabedalimollah/chatit.git
cd chatit
-
Navigate to the backend directory:
cd server
-
Install the required dependencies:
npm install
-
Create a .env file in the backend directory and add your environment variables:
PORT= MONGODB_URI= DB_NAME= JWT_SECRET_KEY= CORS_ORIGIN_LOCAL= CORS_ORIGIN= CLOUDINARY_CLOUD_NAME= CLOUDINARY_API_KEY= CLOUDINARY_API_SECRET= AI_API_KEY= AI_MODEL=
-
Start the backend server
npm run dev
-
Navigate to the frontend directory:
cd client
-
Install the required dependencies:
npm install
-
Create a .env file in the frontend directory and add your environment variables:
VITE_APP_API_KEY= VITE_APP_URI=
-
Start the frontend development server:
npm run dev
- Ensure both the frontend and backend servers are running.
- Open your browser and navigate to http://localhost:5173.
To run this project, you will need to add the following environment variables to your .env file
VITE_APP_URI
VITE_APP_API_KEY
PORT
MONGODB_URI
DB_NAME
JWT_SECRET_KEY
CORS_ORIGIN
CLOUDINARY_CLOUD_NAME
CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET
AI_API_KEY
AI_MODEL
- Email: jabedalimollah7@gmail.com
- LinkedIn: Jabed Ali Mollah
- GitHub: Jabed Ali Mollah
If you find this project useful, don't forget to star the repository! ⭐