Quantum-Suite / QuantumTS

A Powerful Framework for NodeJS based on IoC Containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuantumTS

Description

QuantumTS is a fast and minimalitic framework for creating powerful NodeJS Applications. It generates IoC Containers and Injects Dependencies into the different parts of the framework in order to enhance the speed of the application and maintain consitency in the dependencies of the Application.

More Tools, API and a CLI are coming soon to the project

Also Documentation will be added for the project

Examples

//Import the Files From QuantumTS
import {
    Application,
    ServerConfig,
    Route,
    HttpRequest,
    HttpResponse,
    CanRoute
} from 'quantumts'

//Create the Application
const app = new Application();

//Create the Server Configuration
const config : ServerConfig = {
    port : 8021,
    ServerOptions : {
        key : '##############',
        cert: '##############',
    }
};

//Start the Server with the Server Configuration
app.start(config);

//Create a Route Handler for Base Path and Get Method
@Route({
    path : '',
    method : 'GET',
})
class DefaultRoute implements CanRoute {
    //Handel the Request
    handle(req: HttpRequest, res: HttpResponse): void {
        res.end('Hello World');
    }
}

About

A Powerful Framework for NodeJS based on IoC Containers

License:Apache License 2.0


Languages

Language:TypeScript 100.0%