Application structure

    Please note that these are merely suggestions and not strict guidelines that you must follow. Please adapt it to your own liking!

    Here, the entrypoint is kept tidy, but the event listeners may be less discoverable (though strong naming convention/ctrl+f will help).

    All event handlers are registered in the index.js file

    Here, each event name is located in the same place, which is great for discoverability, but could get out of hand in a medium/big application.

    orderHandler.js

    Caught a mistake? Edit this page on