modules design - samuelchen/gagein-web-new GitHub Wiki

application entry - app.js

Located in app root. The application server starts here by using express. The URL routing is also in this file. Will refactor to router file for future if complex.

config - config.js

Located in /modules. It holds the general configurations.

logger - logger.js

  • located in /modules.
  • It's a wrapper for logging component winston
  • Supports colorized display for console.
  • Supports logging to console, file, stream, Log SaaS, Database, NoSQL and etc.
  • It expose debug, info, warn, error, fatal functions.

router - router.js

home - home.js

common - common.js

api - api.js

data - data.js