Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

corifeus-server

2019.1.19-1 • Public • Published

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

NPM

🏁 Corifeus Server - Motor v2019.1.19-1

🙏 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!

I run my own server with dynamic IP address, so, it may happen, that the server can not be reachable for about max 15 minutes, due to nature of the dynamic DNS. The server may also be unreachable, when I backup the SSD with Clonzilla (very rarely) or an electrical issue (but this should not happen again). When the server 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 errors, since I am developing in my free time. However, it is usually stable.

Bugs are evident™ - MATRIX️

Node Version Requirement

>=10.13.0 

Built on Node

v11.7.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.1.19-1

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

P3X Sponsors

IntelliJ - The most intelligent Java IDE

JetBrains NoSQLBooster

The Smartest IDE for MongoDB

install

npm i corifeus-server

Downloadsweekly downloads

702

version

2019.1.19-1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability