Skip to content

absmach/mg-chat

MG Chat

A modern, real-time chat application built with Next.js, featuring multi-workspace support, secure authentication, and seamless messaging powered by the Magistrala.

Overview

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.

Features

  • 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

Prerequisites

  • Node.js 18+ and PNPM
  • Magistrala (for full functionality)

Installation

  1. Clone the repository:

    git clone https://github.com/absmach/mg-chat.git 
    cd mg-chat
  2. Install dependencies:

    pnpm install
  3. Configure Magistrala (refer to Magistrala documentation for setup)

Usage

Development

Run the development server:

pnpm run dev

Open http://localhost:3000 with your browser to see the application.

Production Build

Build the application for production:

pnpm run build
pnpm run start

Contributing

Thank you for your interest in Magistrala and the desire to contribute!

  1. Take a look at our open issues.
  2. Make your changes compatible with our workflow.

About

An example repository on how a chat app can be built on top of Magistrala

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •