tomyts
v0.1.0
Published
TOMY is a framework for building scalable NodeJS applications based on the cleaner JS syntax, without decorators or sugar syntax.
Downloads
2
Readme
TOMY Framework
🚧 PROJECT ON DRAFT
TOMY is a framework for building scalable NodeJS applications based on the cleaner JS syntax, without decorators or sugar syntax.
TOMY works only with classes that read their arguments and with them create an object based on this primary class.
Usage
For example, the next App class is used to bootstrap the app.
// ./app.ts
export class APP {}
Now can create an instance with the TOMY module.
// ./index.ts
import { createContext } from "tomy"
import { App } from "./app"
const app = createContext().factory(App)
Now go to write a service to its app and declare the use of its service in the App class.
// ./cat.service.ts
export class CatService {}
// ./app.ts
import { CatService } from "./cat.service"
export class APP {
constructor(readonly catService: CatService) {}
}
Result is
App { catService: CatService {} }
Features
- Support to read TS Modules
- (Coming soon) Support to read JS Modules