Macris
Usage
- Install macris with
yarn install macris
. - Create valid endpoint.graphqls file in root folder.
- Create handlers in "root-folder/handler" this can be typescript handlers.
- Compile typescript files.
- 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