Hello,
Thanks to the kind help of the Tech Advisory Group, I have got CommandBox up and running! I am impressed by its ease of use.
Now I need help with the road ahead.
My project is an online English language learning tool.
At the moment, the site is working. The client side was done by me, using html5+js+CSS3; I used apache as the webserver, but I could not get the “user access control” function using apache alone. A friend of mine implemented that function using Nodejs without apache.
I personally don’t like Node.js’s omnipresence of lambda functions. I still remember the good old days in the early 2000s of using the awesome ColdFusion. After some exploration, I’ve decided to switch to Lucee, CommandBox with Lucee engine in particular.
Right now, the workflow of my project is like this:
-
a student accesses a login.html page, and logins in with his username and password.
-
the login.html page sends a request to the server which checks a sqlite db to see if the account exists. If yes, return the course the student has enrolled in; return the dir structure including the names of the subdirs and of the files to the client in the form of json. No other directory structures should be returned. - This is what I mean by “user access control”. Currently, this control is done by Node.js, to be replaced by Lucee, I hope.
-
the client side has a tree view js plugin to display the server-returned file structure, similar to Windows Explorer.
-
When the student clicks a file in the file tree, the client sends a request to the server, and the server returns the requested file and the client displays it.
I would like the server side to be as simple as possible. If I can use CommandBox alone without having to bother a separate installation of Lucee or Tomcat, nor apache /nginx, that would be great.
I wonder if CommandBox alone can satisfy my needs. Do I need to install ajax for CommandBox Lucee? Are there any instructions or tutorials for that? I can see the ajax extension for Lucee, but I don’t know how to get it to work with CommandBox. I also don’t know where CommandBox installs Lucee.
Is there any ready-made module or library for user access control that can work with CommanBox or Lucee? If so, that would be even greater.
My environment is CentOS7 + JRE SE1.8. I have sys admin access to the CentOS.
Any help or pointers to some documentation or tutorials are greatly appreciated.
best regards
Jim
Don’t forget to tell us about your stack!
OS: CentOS7
Java Version: SE1.8
Tomcat Version: ???
Lucee Version: ???