Talkative Tribe is a real-time chat application designed to facilitate seamless communication among users. Built with modern web technologies, Talkative Tribe ensures a responsive, fast, and interactive user experience.
- Frontend:
- React.js
- TypeScript
- Shadcn
- TailwindCSS
- Recoil
- Backend:
- Prisma
- MongoDB
- Socket.io
- Zod
- Node.js
- Express.js
- Real-time messaging
- User authentication and authorization
- Group chats
- Direct messages
- Media sharing (images, videos)
- Emojis and reactions
- Read receipts
- Online/offline status indicators
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- npm (v6 or higher) or yarn (v1.22 or higher)
- MongoDB (v4 or higher)
-
Clone the repository:
git clone https://github.com/Abhi0049k/talkative-tribe.git cd talkative-tribe
-
Install dependencies:
Using npm:
npm install
Or using yarn:
yarn install
-
Set up environment variables:
Create a
.env
file in the root directory of both the backend and frontend and add the following variables:Backend
.env
file:PORT=8998 DATABASE_URL="Paste your Database URL" SALT_ROUNDS="Enter salt rounds" JWT_SECRET_KEY="Enter secret key"
Frontend
.env
file:VITE_BACKEND_SERVER_URL="http://localhost:8998/"
Alternatively, you can copy the
.env.example
file present in both the frontend and backend folders:cp backend/.env.example backend/.env cp frontend/.env.example frontend/.env
-
Run the application:
Using npm:
npm run dev
Or using yarn:
yarn dev
The application will be available at
http://localhost:5173
.
talkative-tribe/
├── backend/ # Backend source code
│ ├── src/ # Backend source files
│ ├── prisma/ # Prisma schema and migrations
│ ├── .env.example # Backend environment variables example
│ └── ...
├── frontend/ # Frontend source code
│ ├── src/ # Frontend source files
│ ├── .env.example # Frontend environment variables example
│ └── ...
├── common/ # Common types and utilities
│ ├── src/ # TypeScript types
│ └── ...
└── README.md
Users can sign up and log in using their email and password. Will soon be adding Google OAuth for authentication.
Users can create new chats, join existing ones, and send messages in real-time. Messages are stored in MongoDB and are instantly available to all participants.
Real-time communication is handled using Socket.io, ensuring that messages and updates are delivered instantly to all connected clients.
Recoil is used for efficient and scalable state management in the application, allowing for a responsive user interface.
Zod is used for schema validation and ensures that the data being sent and received meets the expected structure, providing type safety and error handling.
Users can share images and videos within the chat. Uploaded media files are stored in a cloud storage service and are accessible directly in the chat interface.
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Open a pull request.
For any questions or feedback, please reach out to us at [mangalamkumar2002@gmail.com]