macris
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

Macris

Usage

  1. Install macris with yarn install macris.
  2. Create valid endpoint.graphqls file in root folder.
  3. Create handlers in "root-folder/handler" this can be typescript handlers.
  4. Compile typescript files.
  5. Run macris with "yarn macris"

Hint: Macris can only handle .js files.

Features

  • Serving of static files from the "public" folder.
  • Routines art startup.
  • Routines with cron jobs adjustable from seconds on.
  • Easy input validation.

Limitations

  • If something gets deleted the returning sub elements of the returning values will return null or [] because the data is already deleted Eg Schema->pins: schema{id:"222",...., pins:[]}

Todo

  • add roles via terminal to database
  • read real default roles from database
  • todo read real default role on startup from database
  • write more unittests
  • add HTTPS with https://stackoverflow.com/questions/11744975/enabling-https-on-express-js
  • Replace noFilterOnNoID with filter method where this(look at schemahandler.schema.filter) gets created automatically and it only needs the args ids eg createArgsFilter(["id","active"]) // const filter={ // args?:["id","active"], // source?:["..."], // required?:true // }
  • Add terminal command init to initialize all folders, files and an example handler

Publish package

Run yarn version

Readme

Keywords

none

Package Sidebar

Install

npm i macris

Weekly Downloads

1

Version

1.3.4

License

GPL-3.0

Unpacked Size

131 kB

Total Files

56

Last publish

Collaborators

  • lexermal