v1.1.858-293

Dependencies

  • Nginx
  • Redis
  • MongoDB
  • NodeJs

This is the NodeJs based server / SocketIO / Mongoose.

corifeus-boot.json

See corifeus-boot.json

Needed

Request limit

https://www.npmjs.com/package/express-request-limit

Modules

  • Libaries

    • auth
    • cluster (1 - x cores at once)
    • console
    • error
    • loader (libs and services in multiple projects)
    • process
    • settings
    • util
  • Services

    • email
    • express (roles)
    • mongoose
    • redis
    • chrome (server side rendering via Chrome)

Layers

There are built in layers for Express and Mongoose. A layer is a composite module in every project that uses the Corifeus Server. Every project is prefix. The built is core.

Express

Will become /api/PROJECT/APP/ROUTE/ACTION.

Work

  • PhantomJs load babel-polyfill, libraryPath before loading

For Chrome

Debian based:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
sudo apt-get update 
sudo apt-get install google-chrome-stable

MongoDB and Redis for Windows

MongoDB Windows
Redis Windows

Registry

There is a require('corifeus-server').registry, it shows all modules, libraries.

{
"status": "ok",
"registry": {
  "alias": {
    "corifeus.core.auth": "corifeus.core.lib.auth",
    "corifeus.core.loader": "corifeus.core.lib.loader",
    "corifeus.core.settings": "corifeus.core.lib.settings",
    "corifeus.core.util": "corifeus.core.lib.util",
    "corifeus.core.email": "corifeus.core.service.email",
    "corifeus.core.redis": "corifeus.core.service.redis",
    "corifeus.core.mongoose": "corifeus.core.service.mongoose",
    "corifeus.core.session": "corifeus.core.service.session",
    "corifeus.core.phantom": "corifeus.core.service.phantom",
    "corifeus.core.express": "corifeus.core.service.express"
  },
  "layers": {
    "deployer": [
      "express",
      "mongoose"
    ],

  },
  "corifeus": {
    "core": {
      "lib": [
        "auth",
        "cluster",
        "console",
        "loader",
        "process",
        "settings",
        "util"
      ],
      "service": [
        "redis",
        "email",
        "mongoose",
        "session",
        "phantom",
        "express"
      ],

    }
  },
  "stats": {
    "core": {
      "service": {
        "redis": {
          "prefix": [
            "session",
            "phantom"
          ],

        },
        "mongoose": {
          "models": [
            "deployer-hook"
          ],

        },
        "express": {
          "routes": {
            "/api/core/auth/login": "POST",
            "/api/core/auth/verify": "GET",
            "/api/core/auth/prolongate": "GET",
            "/api/core/phantom/render/*": "GET",
            "/api/core/system/pkg": "GET",
            "/api/core/system/registry": "GET",
            "/api/core/system/settings": "GET",
            "/api/core/util/random/:length?": "GET",
            "/api/deployer/hook/:key": "POST"
          }
        }
      }
    }
  }
}
corifeus Motor
aes-folderangular-compilecorifeuscorifeus-app-server-patrikx3corifeus-app-web-pagescorifeus-buildercorifeus-builder-angularcorifeus-servercorifeus-server-deployercorifeus-utilscorifeus-webcorifeus-web-materialdocker-registry-clientfreenomgrunt-p3x-expresshtml-pdflede-insomnialede-mariadblede-redisonenoteramdiskredis-commandersystemd-managertools