This set of 6 files, represent a template with best practices for setting up a big JS-application from the scratch.
The given structure follow the MVC-pattern (Model-View-Controller) and the module-pattern.
Web-server needed. (Works in IIS too if method in MyApplicationsName.js line 37 is not set to POST)
PHP is NOT mandatory (is optional), and not part of the structure. (Only added an example for how could be used)
Could be easily removed if in SecondClass.js in line 82
the first parameter "myURLSomewhere" gets changed to "myURLToModel1" (from line 23).
The module-pattern alone, explained in a single file,
without the MVC-structure, you could find here:
https://github.com/Reinerth/JS_modulePattern_ClassExample_private_public
The CENTRAL of the Model and the application - The entire content of the application will be routed through this file

A basic example of a simple class.

A complete example with a request to a Model/PHP-file (or JSON-file)

The basic example of the php-file from where database-content could be retrieved.



