I just noticed that now there is hix ver 2.00.03 and it's not backward compatible with hix ver 1.x
BCC5.82/BCC7.3
xHarbour/Harbour
I just noticed that now there is hix ver 2.00.03 and it's not backward compatible with hix ver 1.x
Hua,
Four months ago, I ran an exhaustive AI test to check the consistency of HIX vs. 1.0, and I was astounded by the number of shortcomings it had. As many of you know, HIX was based on the Mindaguas server, and I kept evolving it. The system kept evolving, but all these shortcomings were impossible to fix on the old server; it was an architectural problem that couldn't be resolved.
It was at this point that I decided to refactor the entire server from scratch, with a modern architecture that would adapt to most situations. The system is on GitHub; all the source code is ready to compile, and anyone can add their own libraries if needed: ads, MySQL, etc.
https://github.com/carles9000/hix
The flow is the same, but better structured and more consistent. If you've used the older version of Hix, it's even easier to use.
1 Create Route /routes/web.json
{ "name": "hello", "url": "/hello", "action": "controllers/hello.prg", "method": "GET" }2 Create Controller /controllers/hello.prg
FUNCTION Main()
LOCAL hMyData := { 'name' => 'Hal', ;
'now' => dtoc(date()) + ' ' + time() }
RETURN UView( 'hello.html', hMyData )3 Create View /views/hello.html
@args hData := {=>}
<html>
<h1>Hi {{ hData[ 'name' ] }}...</h1>
<hr>
<small>Request at {{ hData[ 'now' ] }}</small>
</html>You can see how it works here https://hi.hixbase.net/
This same example is also available in the repository -> https://github.com/carles9000/hix/tree/main/examples/web/hi
All these changes are the reason why the two versions could not be compatible, i hope the situation is clear. I honestly believe it's the best harbour web server available today :D
C.
When I run hix.exe 2.0 it immediately starts the web server. If I press Esc it exits hix.exe entirely. How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?
Thank you
hua wrote:When I run hix.exe 2.0 it immediately starts the web server.
If I press Esc it exits hix.exe entirely.
How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?
For hix 1.3a, how to enable developer mode because i want to investigate why localhost/test.prg returns 404 when test.prg is corrrectly placed in the root folder
Thank you
Hi
hua wrote:How do I access the configuration as in previous Hix 1.3 such as the route, folder etc?
https://carles9000.github.io/hix/
C.