[Coldbox 4.3.0] How to access coldbox relax?

Hi,

I’m using Coldbox 4.3.0. I’m new to relax and came across on forgebox. I downloaded and extracted the folder to my modules directory. It looks like in the downloaded folder there is also a “modules” folder. Something seems a bit off here as I have a “modules” folder already and now I have this folder structure "modules → coldbox-relax-development – modules →

I’ve read the documentation and it’s not quite clear on how to load the this in my browser.

Any help or guidance appreciated.

Just to add what I tried:

http://dev.example.com/index.cfm/relax:home.index

The event: relax:home.index is not valid registered event.

I have a local hosts entry on my machine pointing 127.0.0.1 to “dev.example.com

I’m guessing maybe a path/mapping issue?

I think you may be making it harder than it is. If this is a server you’ve started with CommandBox, these three commands are literally all you need to have relax installed, loaded, and in your browser:

install relax
coldbox reinit
server open /index.cfm/relax

You can omit the index.cfm if you’re started your server with rewrites enabled.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

http://dev.example.com/index.cfm/relax:home.index

This is not a valid URL. You’re trying to mix SES urls with non-SES urls. It would either be

http://dev.example.com/index.cfm/relax

Or, if you have rewrites enabled, just this:

http://dev.example.com/relax

Or if you didn’t want to use SES, it would be this.

http://dev.example.com/index.cfm?event=relax:home.index

Warning though, I’m not sure Relax even works with non-SES URLs. If you’re building a REST API, it’s kind of assumed that you’ve got SES enabled.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks for the reply, I’m not using CommandBox (maybe I should be). Do you have any recommendations given that I’m not?

Well, even if you’re not using CommandBox to start your servers, you should still use it to install dependencies. When you say you want to a website somewhere, downloaded something, unzipped it, and copied some portion of it somewhere in your app I basically have no idea what you may have ended up doing :slight_smile: When you say, I ran “install relax” from the CLI, then I know exactly what you’ve got and all the human error and ambiguity is removed.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Making sense… installing CommandBox now, thanks for the assistance.

All future and current modules for ColdBox are meant to be installed with the package manager commandbox.

We are moving away from manual downloads or installs of anything.

Luis Majano
CEO
Ortus Solutions, Corp

P/F: 1-888-557-8057

Like I mentioned in my previous mail. We are no longer supporting manual installations of anything. We are leveraging commandbox for package management.

However, you can do it manually by downloading the binary produced by our build process from downloads.ortussolutions.com

Luis Majano
CEO
Ortus Solutions, Corp

P/F: 1-888-557-8057