If the code with console.log() runs on the server, you’ll find the messages sent to the server’s console log, which can be seen on the Glitch project editor, buttons Tools > Logs
If you’re following someone else’s instructions make sure you trust them.
If in doubt post a question in our forum https://support.glitch.com
For now, the console and the editor don’t automatically sync. You can
manually run the refresh command and it will force a refresh,
updating the editor with any console-created files.
For more information about this and other technical restrictions,
please see the FAQ: link
There is a bug in the code preventing the console.log from being run. The following condition is false for most date strings, but true for a string such as “6”
if(reqDateString > 5){
Did you want it to check the length of the string? For example,
That was a very good point and yes that’s what I was trying to do, but after changing the line still no log. Is there a step-by-step tutorial that you know of?
How are you running the server side code? If it is similar to the hello-express example when creating a new project, any console.log in server.js should display in the editor Logs.
@IrishBrown in the Glitch editor, you can look for console.log messages in the “Tools” area under “Logs”. Console is the interactive terminal to your project. The naming can be a little confusing!
looking at your last response, I opened a new express project and it look like it logged fine, so I am going start from scratch and rebuild the project. Will let you know the outcome. Appreciate all the help.
Thanks for setting me on the right path!
For anyone else that may have the same questions, here is what I found out.
for “Glitch console” (console with black screen)
I need to us node myApp.js or whatever the file name is.
2)If “nodemon” is installed to constantly watch the your server for changes, then use "nodemon myAppName.js".
Found some end point testing tools such as"Swagger Inspector", “Postman” , “Insomnia”,“API Tester” etc. to check that data passed will behave as expected.