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
From the course: Express Essentials: Build Powerful Web Apps with Node.js
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Getting started: Server and project setup16m 24s
-
(Locked)
Mock data is served: Adding data to your server6m 34s
-
(Locked)
What are HTTP methods and routes?8m 34s
-
(Locked)
Postman: A free tool for testing4m 28s
-
(Locked)
Let's GET some data: Creating a basic data endpoint2m 37s
-
(Locked)
Serving static files with Express6m 36s
-
-
-
-
-