
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
46 lines
1.2 KiB
Python
Executable File
46 lines
1.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Copyright (c) 2009 Google Inc. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
|
|
|
|
def IsCygwin():
|
|
# Function copied from pylib/gyp/common.py
|
|
try:
|
|
out = subprocess.Popen(
|
|
"uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
|
)
|
|
stdout, _ = out.communicate()
|
|
return "CYGWIN" in stdout.decode("utf-8")
|
|
except Exception:
|
|
return False
|
|
|
|
|
|
def UnixifyPath(path):
|
|
try:
|
|
if not IsCygwin():
|
|
return path
|
|
out = subprocess.Popen(
|
|
["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
|
)
|
|
stdout, _ = out.communicate()
|
|
return stdout.decode("utf-8")
|
|
except Exception:
|
|
return path
|
|
|
|
|
|
# Make sure we're using the version of pylib in this repo, not one installed
|
|
# elsewhere on the system. Also convert to Unix style path on Cygwin systems,
|
|
# else the 'gyp' library will not be found
|
|
path = UnixifyPath(sys.argv[0])
|
|
sys.path.insert(0, os.path.join(os.path.dirname(path), "pylib"))
|
|
import gyp # noqa: E402
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(gyp.script_main())
|