A bit confused about what side we are working at...
So, we are learning that node is a runtime environment to run JS outside of the browser, and that allows developers to create server-side application. I am a bit confused now about this application printing on console information received from the treehouse API. Is this considered a client side or server side? In other words, are we coding from the point of view of a server or a client? I understand that we are not in the browser anymore (at the moment), but is this considered server to server communication (our server to treehouse's server)? or are we still acting as clients and the treehouse API is the server?
Thanks in advance
Steven Parker180,105 Points
Anything you develop in node.js is server-side relative to your browser. But you're right that this code performs as a client relative to the the treehouse API. So this code is effectively both, but from different perspectives.
Treehouse API (server) (client) node.js program (server) (client) your browser
Steven Parker, thanks. That's very clear now :) So, in this context we are developing a command line app, the terminal would be the client? Thanks for your response
Sounds super clear now! Thanks immensely