```CommandBox:Ookma-Kyi> start √ | Starting Se...
# cfml-beginners
o
Copy code
CommandBox:Ookma-Kyi> start
 √ | Starting Server
   | √ | Setting Server Profile to [development]
   | √ | Loading CFConfig into server

CommandBox:Ookma-Kyi>
Do i need to connect my Mysql Database to start a basic server? Not using any databases yet...
m
You do not need a database
o
Then it's safe to assume the server is running?
j
It usually opens a browser window by default. Or a system tray icon depending on your OS.
m
server list
πŸ‘πŸ» 1
j
That too… πŸ˜‰
o
Sorry new to this
b
@Ookma-Kyi I recommend you install the bullet train module which will also help you see what servers you have running in a given folder
Copy code
install commandbox-bullet-train
Also, based on the output you showed, it appears you're in a folder named
Ookma-Kyi
which leads me to believe you probably ran the start command in your user home directory
o
no the project resides there
b
The way CommandBox is designed, is you create a folder for your web app or
cd
"into" an existing web root, and then run start
It exists in your user home?
Or you named the project after yourself? πŸ˜†
o
no the project is in D:\Ookma-Kyi
b
πŸ‘ Ok, good. Just checking
o
Ookma-Kyi is the project name
b
There should be an icon in your windows system tray for the server
Clicking on it reveals options to open the site home or CF admin in a browser, as well as open the web root or server home in windows explorer
Keep in mind, Windows likes to hide tray icons for you (something that really annoys me)
o
found it, lucee right?
b
UNless you've set specific settings in your
server.json
file, the server will be running on localhost and bound to a random port
Unless you've set another
app.cfengine
in your
server.json
, yes you'll get a Lucee server by default
o
yea not familiar with Coldfusiuon yet
b
Read through the entire "Embedded Server" portion of the docs and you'll be an expert in CommandBox Servers πŸ™‚ https://commandbox.ortusbooks.com/embedded-server
o
getting used to everything πŸ™‚
b
Well, welcome to ColdFusion!
What language are you coming from?
o
Python
πŸ‘ 1
CFML is also dynamic and loosely typed, but its syntax is much closer to javascript and whitespace has no meaning at all, unlike Python
Oh, here is a great language reference https://cfdocs.org/
CommandBox itself is just a CLI tool for running REPLs, starting web servers, or scaffolding MVC sites, and installing CF packages.
o
Ok question though I got my server running but, it is asking me to log in immediately. I am using the quick-with-auth template cause I am following a course on Udemy. How do i make it so you can access the home page without logging in?
b
I'm not sure what exact URL you're referring to when you say "it" makes you login. What exactly makes you login?
Also, I'd recommend posing this question to the author of the course.
That app template was created by Eric Peterson, so you can also ping him directly in the #box-products channel
This channel is for beginner questions about CFML in general, but your question is rather specific to a ColdBox MVC app using the Quick module.
@Ookma-Kyi
o
ok
i am taking the course to learn CodeBox and ColdFusion
πŸ‘ 1
b
There is also a tremendous amount of video content on cfcasts.com both free and paid with fresh paid content added every week
o
This is the screen I am getting after launching the server:
b
I assume this is explained in the turorial
o
ok thanks
b
LIke I said, ping Eric in the #box-products channel for more info as he made that
o
experimented a bit, changing:
Copy code
component extends="coldbox.system.EventHandler" secured {
to
Copy code
component extends="coldbox.system.EventHandler" {
removed the log in prompt, ColdFusion is so easy! πŸ™‚
b
Um, that sort of defeats the example, but ok lol
o
I can always reactivate it
b
The
secured
annotation is something the cbauth module inside of ColdBox is picking up, not a CFML thing
CFML allows arbitrary attributes to be added to components, cbauth just looks for one called
secured
and then adds a security check for all the actions in that handler via a request interceptor
o
It's equivilant to the Django
Copy code
@Authorisation
tag to mark a route as requiring to be loggedin? The course is mostly on Coldbox but, it does seem to have a bit of CFML here and there. Sadly there isn't really a full course on Udemy for CFML and General ColdFusion so I am picking it up as I go along.
b
Yep, similar to Django
The modern CFML book and learn CFML in a week I posted above are more generic CFML
Plus there's a lot more on cfcasts
o
Thanks