From the course: Express Essentials: Build Powerful Web Apps with Node.js

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Mock data is served: Adding data to your server

Mock data is served: Adding data to your server

- [Narrator] When you're developing an API and want to test how data is displayed, you may want to start with some mock data. Mock data generation can be a tedious task, but fortunately there are resources available to help us quickly and easily put together what we need. One such resource is a website called Mockaroo. I have used this countless times, and it is incredibly helpful and easy to use. On the landing page of Mockaroo, you're prompted with a variety of field names and corresponding data types. For the purpose of this video, we are going to keep things very simple. But if you ever need to generate mock data, know that there are many options here for you. These fields and types represent the information that will be housed in the JSON data that we are going to generate. I'll start by removing the last two items, gender and IP address. So now you should just have four fields listed that will be included in our…

Contents