Hi there everyone…
This is a little long - sorry.
Let me start with a few things, please:
- I am completely new to ColdBox and all of it’s modules.
- While your documentation is prolific: and everything you ever need is IN there somewhere… finding what you think you need is difficult at the time, you’re looking for it.
Let me give you an example of why I am struggling and then, what I am hoping for some help with, PLEASE!
Topic XXX
You can configure Topic XXX with the following JSON ...
That’s great - I DO need to know the structure and the options - but what file do they go in? And at what level of nesting?
I certainly do see in some of the documentation things like
“This goes in the Coldbox.cfc or the modules own XXX.cfc”
But the above line is missing from a lot of the documentation where you provide examples.
As the author of the documentation - you have a lot of inherent knowledge - so to you it is spectacularly obvious that because you’re talking about YYY - it goes in the ZZZ.cfc - that you find in the DDD/ddd/CCC directory.
As a newcomer to the framework/libraries AND your documentation - there is nothing obvious about any of it, at all.
I am happy to create PRs, that insert the parts “I” think are missing. I just can’t do it, right now - as I don’t know the specifics. That is I can create a bookmark/review - that says *“THIS paragraph needs to mention the file and the location in that file for the snippet below.”
“I” just don’t know what file or where in the file the snippet belongs at this moment.
Back to my inability to successfully use the documentation…
For CommandBox - I found the documentation really difficult to follow until I treated it like a “CookBook”- as opposed to reading it from page1 → the end.
Once I shifted how I thought of the documentation - I managed to find what I was looking for, when I was looking for it.
I am also aware that you supply quite a few skeleton applications…
And I am aware that the XXX skeleton app is one “example” of using module XXX.
What you don’t have - or at least I can’t find one…
Is a skeleton application that incorporates different modules together.
I want to create a ColdBox application that uses
- ORM for basic CRUD (I don’t much care if it is Hibernate or Quick) - BTW is one preferred over the other?
- Some sort of login capability (I am not really fussed at THIS stage)
- CBSecurity for authorising events via Application role (something very basic, like)
- READ-ROLE can only “list/view” records
- The EDIT-ROLE can additionally “update”
- The CREATE-ROLE can additionally “create”
- The DELETE-ROLE can additionally “delete” records.
- CBSecurity (as a whole) for all the CSRF/XSS/Etc protections that are available.
A skeleton that sets up all you need to have a CRUD application exposed to the “public”, safely.
There is a skeleton app (whether it is yours (Ortus) of someone else’s - doesn’t matter), individually for:
- Hibernate ORM
- Quick ORM
- Authentication
- Authorisation
- Firewall Security (XSS/etc)
Just not one that does it all.
(Again - at least not one that I could find and I have looked for a few days now.)
Lastly: (and thanks for staying with me this long)
Is there a Cheat sheet available for all the CLI commands that I can use when working with a ColdBox application?
Step 1: Create a new app (use coldbox create app help
, to see all options)
coldbox create app
Step 2: Create a new Handler (use coldbox create handler help
, to see all options)
coldbox create handler
To create a handler that includes all the CRUD actions: You can use
coldbox create handler resource="true"
So ultimately you end up with a cheat sheet of CommandBox CLI commands (broadly in order) that you can use to create an entire application…
Further - are there coldbox-cli commands that will let you incorporate “authorisation” rules into the portions you’re creating?
As always thanks very much!