@wild-framework/core
v0.1.0
Published
Application lifecycle and provider system for Wild Framework.
Maintainers
Readme
@wild-framework/core
Application lifecycle and provider system for Wild Framework.
Install
pnpm add @wild-framework/coreUsage
import { createApplication } from "@wild-framework/core";
const app = createApplication();
app.register(DatabaseProvider);
await app.boot();
await app.listen(3000);API
createApplication()— create the appapp.register(ProviderClass)— register a providerapp.boot()/app.shutdown()— lifecycleapp.resolve(T)— resolve from the containerapp.listen(port)— start the HTTP server
License
MIT
