@almedso/cosmea-core

Core Service for User/Organization/Role/Site

Usage no npm install needed!

<script type="module">
  import almedsoCosmeaCore from 'https://cdn.skypack.dev/@almedso/cosmea-core';
</script>

README

Cosmea Core

Core service to handle

  • user, organization, role and site object(s)
  • deal with authorization via web token (JWT)
  • deal with permissions (access control)
  • provide simple user/password authentication (using bcrypt)

The name cosmea introduces a namespace and helps the author to memorize a the name of a beautiful flower.

Installation

Get the source code:

$ git clone git@gitlab.com:almedso/cosmea-core.git

Install the required packages (this might take a while)

$ npm install

Run the tests locally

$ npm test

Build the developer documentation

$ npm run jsdoc
$ npm run apidoc