WebStorm and running , run configurations
-
run configuration settings will determine what javascript file is run when you run the app --here it is pointing to the bin\www.js file
The below www.js file that is run as you can see first brings in the app.js file(which sets up routing files to excute that are mapped to URIs) then it starts tge server running at port 3000
// the bin/www.js file #!/usr/bin/env node |
the app.js file that is used in creating the NodeJS server maps URIs to route javascript files (which in turn will call controller code)
// the app.js file var express = require('express'); |