i'm still on my project and i'm looking for some best practice.
in my main js file i've:
- the connection to sqlite database (using sql.js, sqlite3 module is failing on build)
- an express instance for data retrieving
- a connection to a SOAP web service to update the local SQLite DB.
i'd like to separate the logic in 3 files (SQLite, Express and SOAP)
obviously each part require functions, variables or method from other files.
(the db object is created in sql.js, handled by Express and updated by SOAP and so on)
actually what i need is call from my main HTML file, some variables stored in main js and pass to module exported, but i can't figure out why nothing happens.