A modern, real-time chat application built with Next.js, featuring multi-workspace support, secure authentication, and seamless messaging powered by the Magistrala.
MG Chat is a collaborative communication platform designed for teams and organizations. It leverages the Magistrala IoT platform's SDK enabling secure, scalable, and real-time messaging across multiple workspaces, channels and users.
- Multi-Workspace Support: Organize conversations into separate workspaces for different teams or projects
- Real-Time Messaging: Instant message delivery with WebSocket connections
- User Authentication: Secure login and session management using NextAuth.js
- Channel Management: Create and manage public and private channels within workspaces
- User Invitations: Invite new users to workspaces
- User Management: Profile management and password settings
- Notifications: Real-time notifications for new messages and invitations
- Node.js 18+ and PNPM
- Magistrala (for full functionality)
-
Clone the repository:
git clone https://github.com/absmach/mg-chat.git cd mg-chat -
Install dependencies:
pnpm install
-
Configure Magistrala (refer to Magistrala documentation for setup)
Run the development server:
pnpm run devOpen http://localhost:3000 with your browser to see the application.
Build the application for production:
pnpm run build
pnpm run startThank you for your interest in Magistrala and the desire to contribute!
- Take a look at our open issues.
- Make your changes compatible with our workflow.