Skip to content

sabali33/nodejs-modularity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs-modularity

A simple library to make NodeJS applications modular

Usage

import AppContainer from "../app-container";
import { EventsServiceProvider } from "./src/events-manager/events-service-provider";
import { RouterServiceProvider } from "./src/router/RouterServicerProvider";
import { ServerServiceProvider } from "./src/server/ServerServiceProvider";

async function App() {
  try {
    await AppContainer.new(
      {}, // Config variables goes here
      new RouterServiceProvider(),
      new ServerServiceProvider(),
      new EventsServiceProvider()
    ).boot();
  } catch (error) {
    console.log(error);
  }
}

App();

About

A simple library to make NodeJS applications modular

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published