npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

corifeus-server

2019.4.10 • Public • Published

Donate for Corifeus / P3X Contact Corifeus / P3X Corifeus @ Facebook Build Status Uptime Robot ratio (30 days)

NPM

🏁 Corifeus Server - Motor v2019.4.10

🙏 This is an open-source project. Star this repository, if you like it, or even donate to maintain the servers and the development. Thank you so much!

Possible, this server, rarely, is down, please, hang on for 15-30 minutes and the server will be back up.

All my domains (patrikx3.com and corifeus.com) could have minor errors, since I am developing in my free time. However, it is usually stable.

Note about versioning: Versions are cut in Major.Minor.Patch schema. Major is always the current year. Minor is either 4 (January - June) or 10 (July - December). Patch is incremental by every build. If there is a breaking change, it should be noted in the readme.

Bugs are evident™ - MATRIX️

Node Version Requirement

>=10.13.0 

Built on Node

v11.14.0

The async and await keywords are required.

Install NodeJs:
https://nodejs.org/en/download/package-manager/

Description

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)
    • bull

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.

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.express": "corifeus.core.service.express",
    "corifeus.core.chrome": "corifeus.core.service.chrome"
  },
  "layers": {
    "deployer": [
      "express",
      "mongoose"
    ],
    
  },
  "corifeus": {
    "core": {
      "lib": [
        "auth",
        "cluster",
        "console",
        "loader",
        "process",
        "settings",
        "util"
      ],
      "service": [
        "redis",
        "email",
        "mongoose",
        "session",
        "chrome",
        "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/chrome/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-SERVER Build v2019.4.10

Donate for Corifeus / P3X Contact Corifeus / P3X Like Corifeus @ Facebook

P3X Sponsors

IntelliJ - The most intelligent Java IDE

JetBrains NoSQLBooster

The Smartest IDE for MongoDB

install

npm i corifeus-server

Downloadsweekly downloads

1,481

version

2019.4.10

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability