Using the framework
Now that we have the architecture in place, we can go through a scenario where a developer uses our frontend framework parts to build a simple frontend example application. In Chapter 7, we performed the same task to get a good outline of all the features working together to achieve a certain task. To follow along, ensure that you have installed the dependencies, and then you can start the sample app in the following directory:
> cd chapter7/componium/tests/sample > componium dev Executing (default): SELECT 1+1 AS result Componium Server (PID: 59938) started on port: 9000
You will be able to open the browser at http://localhost:9000
to view the application.
Figure 8.5: A sample client-side app
Based on Figure 8.4, we want to create a page with a header called List of frameworks. We also want to list some frameworks on this page. Every framework entry should attach to the client-side view and show a number of star points...