menu icon

Campus Trade Rockin' with AngularJS

Design with AngularJS
Posted on : 29 October 2023
2-4 Min
Tag(s) : Campus Trade Development, AngularJS

Some argue that AngularJS is obsolete and no longer relevant in the web development space ever since Google terminated support for the project in December 2021. However, I strongly disagree. AngularJS remains a fantastic framework, which is why Campus Trade has been rockin' with it since January 2022. As of today, 29 October 2023, I have successfully transitioned the platform's web interface to run purely on AngularJS.

Previously, some pages on the platform were pre-rendered at the server-side using PHP, while others depended on JavaScript functions to manipulate HTML views directly. However, the advantage of using the AngularJS implementation is the clear separation between HTML rendering and data processing. This design pattern, often referred to as Model-View-Controller (MVC), allows us to create powerful applications that work seamlessly across various platforms and devices.

Campus Trade on the web is a single page web-application. Navigation on the platform is achieved by the use of ngRoute which maps each URL location to an AngularJS controller. The routes are configured in such a way that HTML templates or fragments are retrieved from the server, which contain the content of each page. However, i faced a challenge in the past, as some of the fetched fragments relied heavily on server-side rendering. This created a disparity between the mobile application and the website, making them distinct and unconnected. This disconnect was going to pose a problem when it comes to scaling up the Campus Trade platform, which is crucial for the future plans and the overall growth of the platform and the company.

Developing the web client using AngularJS
Fig 2) Developing the web client using AngularJS

As of 29 October 2023, the Campus Trade client website is running exclusively on AngularJS + JQuery and i am pleased with the results and the effort taken to make this happen. This helps to pave the way for more exciting improvements of the platform and to ensure that everything is intergrated properly.

"The long and lovely tails now precede you on your journey; the wind from the sun is at your back." - Carl Sagan, Ann Druyan - Comet

Useful resources for further reading :


About the author :
Thabang Serumula
Thabang Serumula
Founder, Developer, and Chairman of Campus Trade.