@nariajs/core
v0.1.2
Published
NariaJS Core - DI, Decorators, and Lifecycle
Readme
@nariajs/core
Core module for NariaJS framework. It provides the Dependency Injection system, Decorators, and Lifecycle management.
Installation
npm install @nariajs/core reflect-metadataFeatures
- Dependency Injection: Powerful constructor-based DI container.
- Decorators:
@Module,@Controller,@Injectable, and HTTP method decorators (@Get,@Post, etc.). - Lifecycle Hooks:
onModuleInit,onApplicationBootstrap, etc. - Factory:
NariaFactoryfor application instantiation.
Usage
import { Module, NariaFactory } from "@nariajs/core";
@Module({})
class AppModule {}
async function bootstrap() {
const app = await NariaFactory.create(AppModule, adapter);
await app.listen(3000);
}