@jondotsoy/tomy
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jondotsoy/tomy

Weekly Downloads

2

Version

0.1.0

License

none

Unpacked Size

66.8 kB

Total Files

38

Last publish

Collaborators

  • jondotsoy