Nex Framework

Qode is powered by **Nex**, a high-performance framework designed for robust server-side implementations, real-time communications, and advanced optical data processing.

Getting Started

To integrate Nex into your project, begin by importing the core implementation manager.

javascript
const { Implementation_Manager } = require('@red-blue/nex');

// Initialize the core Nex implementation
await Implementation_Manager.initializeImplementation();

Class Initialization

Nex uses a singleton-based manager for handling server lifecycle and database connections.

Example: Custom Server Startup
const startApp = async () => {
    try {
        // 1. Boot up core services
        await Implementation_Manager.initializeImplementation();
        
        // 2. Start HTTP & Socket.io layer
        Implementation_Manager.initializeHttpAndStartServer(routes);
        
        console.log("Nex Core Online");
    } catch (error) {
        console.error("Boot sequence failure:", error);
    }
};

Environment Parameters

Configure your `.env` or configuration object with these essential parameters:

Parameter Type Description
APPLICATION_PORT_NUMBER Number The port where the Nex server listens.
DB_TYPE Array Supported types: ['mysql', 'mongodb', 'mssql']
EMAIL_SECURE Boolean Enable SSL/TLS for SMTP services.