This is a stand-alone broker application. I'm new to Express and Node, so I would like some advice on how to architect the structure of this application.
Starting off:
- I have just an app.js file that is the server and opens the web socket.
- Another (router.js) that has the Router(), and a list of REST calls.
However, this application is going to have a lot of REST calls, and is expecting a lot of data coming in and requests going out. So just having a list of get, post, etc. calls in router.js can get disorganized very quickly. Is there a better way to design this application?