Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omega as a module #8

Open
vicary opened this issue Feb 20, 2013 · 1 comment
Open

omega as a module #8

vicary opened this issue Feb 20, 2013 · 1 comment

Comments

@vicary
Copy link

vicary commented Feb 20, 2013

This gives more flexibility to work with omega, like sharing the same port with other services and so on.

I can contribute to this if you think this is good.

@vicary
Copy link
Author

vicary commented Feb 20, 2013

Modulizing can be a full interface from the module with carefully named public functions,

or as simply as doing the following lines for the users, separating from express dependency, then give public access to the Dao & tracker functions.

    issueDao = require('./lib/issueDao'),
    historyDao = require('./lib/historyDao'),
    projectDao = require('./lib/projectDao'),
    tracker = require('./lib/tracker')

which in tern gives public access as so

    var omega = require('omega');
      , omegaIssue = omega.issueDao
      , omegaHistory = omega.historyDao
      , omegaProject = omega.projectDao
      , omegaTracker = omega.tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant