Skip to content

ModuloJS is a toolset to build modular NodeJS/Express applications

Notifications You must be signed in to change notification settings

opendena/modulojs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

   sudo npm install modulojs -g

Usage

To create a new module/application name '''demoapp''' type :

   modulojs demoapp
   cd demoapp
   npm install
   npm start or node server.js

# My first module inside it...

   cd demoapp
   npm install modulojs-demo-module
   npm start or node server.js

And now, you can try to browse to '''http://localhost:3000/demo'''

Routing

To add a route, you just need to create a file in ./middlewares/50-routing/ that exports a function which accepts an express server. Routing is like express

Example:

  module.exports = function (server) {
      server.get('/path', function (req, res) {
          // Awesome code!
      });
  };

About

ModuloJS is a toolset to build modular NodeJS/Express applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages