I’m trying to get started building an application using node.js but can’t seem to even get a test page to work…
I’ve connected to the database and created a test query which I’ve added to the page using server connect (as per usual). I’ve just added a basic select menu using this as the data source but when I check the page in a browser I get the following error in the console…
{"status":"500","message":"A server error occured, to see the error enable the DEBUG flag."}
I’ve enabled debug but just get the same error telling me to turn on debug.
The code on the page looks like this…
I created another basic query and tried outputting that straight to a browser but just get the following…
{"status":"404","message":"/api/test not found."}
Turning on debug in the query properties makes no difference to this error.
Are these errors something to do with routing? I haven’t made any changes here but was under the impression the routing configuration “works out the box”…
Any help much appreciated - I really want to start using node.js but tempted to just go back to PHP.
Thanks.
Last updated: