Mocking Angular Applications’ Backend

  • Postat în IT
  • la 20-04-2023 12:21
  • de Horatiu Dan
  • 180 vizualizări

by Horatiu Dan

Nowadays, most products have their front-ends and back-ends fully decoupled and sometimes developed by different teams. Once the communication interfaces have been agreed upon, the ‘parts’ may be developed either individually, following distinct paths, or together. Irrespective of this aspect, when developing the front-end it is very convenient to be able to focus on its main functionalities and the interaction with the back-end and treat the latter as a black-box.

This post presents a few ways of mocking the data consumed in an Angular application, so that the evolution of the product is smooth and not completely dependent on the back-end services, especially during its development.

Set-up

The front-end application displays a page with Ninjago Series characters, together with a few attributes – name, type, season the...