app.js runs the whole API, it will call routes, insert middleware, handle request errors
app.js should be in root
Process
Completing this ticket means:
(1) initializing the app with express;
(2) server listens on PORT: 8080, console.log something to show it is successfully listening;
(3) requires routes/index.js
Expected Result
node app.js should return a success message to the terminal
Context
app.js
runs the whole API, it will callroutes
, insert middleware, handle request errorsapp.js
should be inroot
Process
express
; (2) server listens onPORT: 8080
,console.log
something to show it is successfully listening; (3) requiresroutes/index.js
Expected Result
node app.js
should return a success message to the terminal