Chapter 13. Final Refactoring
This is the final stage of our development. Now that we have written all the working code, we must make it reusable but most importantly, maintainable. This chapter will help you to reuse code by means of widgets and other components. We will see some practical examples on how to use them. Then, we will deal with documentation, an important aspect of app development that allows everyone to quickly learn how a project is structured and built.
For the documentation, we are going to use the two most important tools provided by the framework in order to build API and guide references, making a real-life example. We will cover the following topics:
- Creating widgets
- Example – creating a widget with a carousel
- Creating components
- Example – creating a component that creates a backup of the MySQL database and sends an e-mail to the administrator
- Creating modules
- Generating the API documentation
- Example – using API documentation to generate doc...