# WiFi Pineapple Module Repository This is the module repository for the WiFi Pineapple NANO and TETRA. All the community developed modules are stored here, and developers should create pull requests for any changes to their modules, or module additions. ## Module Structure A WiFi Pineapple Module is created with HTML, AngularJS and PHP. All HTML is done using the Bootstrap CSS framework, and AngularJS combined with our [PHP API](https://wifipineapple.github.io/wifipineapple-wiki//#!api.md) allows for asynchronus updating and easy to implement features for your module. A basic module will request information through AngularJS to PHP, and then the PHP will provide a response to AngularJS, where it will then be displayed on the HTML page for the user to see. ``` +-------------------+ +--------------+ +-----------+ +------+ | AngularJS Request | --> | PHP Response | --> | AngularJS | --> | HTML | +-------------------+ +--------------+ +-----------+ +------+ ``` The structure of a module is as follows: ``` . ├── api │ └── module.php ├── js │ └── module.js ├── module.html └── module.info ``` More information on creating modules can be found [here](https://wifipineapple.github.io/wifipineapple-wiki//#!creating_modules.md) while more information on the API can be found [here](https://wifipineapple.github.io/wifipineapple-wiki//#!api.md). ### module.info The `module.info` file is a simple JSON array consisting of `author`, `description`, `devices`, `title`, and `version`. The `version` field will need to be updated with any pull request. ### module.html The WiFi Pineapple modules make use of Bootstrap to provide a good mobile viewing experience and a clean look. Module developers are encouraged to make use of Bootstrap components, such as responsive tables and the grid system. To learn more about Bootstrap, visit the [Bootstrap Website](https://getbootstrap.com/). We also include a hook for atleast one AngularJS controller. You can learn more about AngularJS at the [AngularJS Website](https://angularjs.org/). ```