Skip to content

It's a Express.js modular extension, that will adding features about modular a sample program or application.

License

Notifications You must be signed in to change notification settings

ZoneTwelve/exprango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exprango - a express.js modular extension

Introduction

Sometimes creates an application with friends will be a little hard, so I create this modular extension for making express.js user's code turn into a module.

then the sub-app could install or uninstall easier by creating a sub-app folder and writing into the install_app.js.

Note: We didn't use install_apps.js for now. [date=2022-10-29]

MRV Structure

Model-Route-View, it's an entirely new software engineering model.

Note: The document is not available right now.

Controller

It's an essential function for sub-modules itself, but this also has outsider caller support, making multiple application can combine together.

How to use

const { Controller } = require("exprango");

Public method:

function Register( account, password ){

}

Controller.public("register", Register);

Private method:

function Login( account, password ){

}

Controller.private("login", Login);

Router

Same as a normal Router, but add a root manager for accessing other modules.

Render

some of them is on the History.md.

Models

--- Prepairing ---

TODO

  • Support three-party socket modules
  • Router Render
    • with default configrations

About

It's a Express.js modular extension, that will adding features about modular a sample program or application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published