There are NodeJS and Express functions used to setup a connection to the MySQL database, and respond to http GET & POST requests. My question is: where does the server get setup? What I understand currently is that I need the http.createServer() call somewhere to start the actual server. Would this go in the same code, or in a separate file?
Dascolt,
Thank you so much. That makes sense. In the freecodecamp nodejs/express tutorials it looked like they setup the server separately, so I got confused. Very much appreciate your help and the documentation link.