1.0.2-rc.4 • Published 3 years ago

@augejs/module-core v1.0.2-rc.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

augejs

npm version standard-readme compliant

augejs is a progressive Node.js framework for building applications.

:star2: Star us on GitHub — it helps! :clap:

Table of Contents

Description

augejs is a progressive Node.js framework for building applications. It uses modern JavaScript built with TypeScript.

Look at a diagram below:

An application is composite of 3 types of element:

Provider is an abstract logic unit which can provide for Module.

Decorator is an abstract logic unit which can decorate for Module and Provider.

Module is consists of Provider and Module.

This is the one of fundamental concept for augejs.

Features

  • :penguin: The core layer is small, simple and extensible.

  • :baby_chick: Progressive Development.

Install

This project uses node and npm. Go check them out if you don't have them locally installed.

npm install @augejs/module-core

Usage

import { Module, boot } from '@augejs/module-core';

// we use a @Module decorator to define a module
@Module()
class AppModule {
  async onInit() {
    // the onInit lifecycle method will be called when application boot
    console.log('hello augejs');
  }
}

(async () => {
  // boot the whole application by module.
  await boot(AppModule);
})();

Package Dependencies

Lifecycle

There is the lifecycle name for Module And Provider.

Please take a look at this link provider-scanner-hook, augejs is on top of that. augejs application boot flow is a middleware execute mode.

Cluster Decorator

See examples/cluster

@Cluster({
  workers: 2
}) 
@Module()
class AppModule() {
}

The above code, the program will startup as a master daemon process and the AppModule will startup as a worker process. If the worker process is exit with an exception or killing by other cases then the master process will fork a new work process for AppModule.

If the master process is exit with signal(SIGTERM), the work process will shutdown gracefully.

Document

visit augejs.github.io. :tada:

Examples

see the Examples. :open_book:

Related Efforts

Maintainers

Alex Zhang.

Contributing

Feel free to dive in! Open an issue or submit PRs.

augejs follows the Contributor Covenant Code of Conduct.

Contributors

This project exists thanks to all the people who contribute.

...

License

MIT © augejs

1.0.2-rc.3

3 years ago

1.0.2-rc.4

3 years ago

1.0.2-rc.1

3 years ago

1.0.2-rc.2

3 years ago

1.0.1-rc.11

3 years ago

1.0.1-rc.10

3 years ago

1.0.1-rc.9

3 years ago

1.0.1-rc.8

3 years ago

1.0.1-rc.6

4 years ago

1.0.1-rc.5

4 years ago

1.0.1-rc.4

4 years ago

1.0.1-rc.3

4 years ago

1.0.1-rc.2

4 years ago

1.0.1-rc.1

4 years ago

0.0.35

4 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.26

4 years ago

0.0.27

4 years ago

0.0.24

4 years ago

0.0.25

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.12

4 years ago

0.0.11-alpha.2

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago