Fake Your Angular Backend Until You Make it
Mock a REST API Back-End for Your Angular 11 App with JSON-Server and Faker.js
More often than not, modern web development involves multiple developers working in separate front-end and back-end applications. This approach has many advantages, such as the separation of concerns but also introduces a few challenges such as the difficulties in coordination between the front-end and back-end developers. Here comes the role of tools such as JSON-Server to ease these difficulties. As a front-end developer, JSON-Server is such a great tool that allows you to spin up a REST API server with a fully-working API.
If you want to start building your Angular application, but you don’t have a backend yet to serve you real data. Worry no more! In this article, I will introduce you to JSON Server, a tool that makes it easy to mock rest APIs. Combined with Faker.js for realistic random data, you don’t need to have a real backend to get started.
For a step by step tutorial, read Mock a REST API Back-End for Your Angular 11 App with JSON-Server and Faker.js