Creation of your modules
To work on Marjory's modules, you will need:
When you go to the My Modules app, you'll find a button to create a new module. The first thing you need to do is to give your module a name, then choose if you want to generate the module from a swagger or from scratch.
If you have a Swagger or OpenAPI file (
.yaml), you can upload it directly when creating the draft to autogenerate actions based on API request. This will save you time but won't do everything for you.
You can also start from scratch with our ready to use boilerplate containing everything needed to start developing a module.
After downloading your generated module or boilerplate, open your module in your IDE. Make sure the
marjory-clipackage is set in dependencies, the type is set to
moduleand you have the scripts set up.
"local": "marjory local",
"action": "marjory action",
"package": "marjory package"
Now that everything is set up, you can open a terminal in your module folder and run:
npm run local