You will be creating a Node.js backend server that will return a list of PodcastData elements. Here are the steps to create a Node.js backend server:
- Open Visual Studio Code for writing the Node.js server.
- Go to File | Open Folder and select the directory where you will be working with the Node.js server codes. The following shows the folder in Visual Studio Code:
- Create three files: package.json, server.js, and web.config.
- In package.json, add name:"podcasts", description:"podcast service", version:"0.1.0", author:"Henry Lee <henry@henrylee.link>", dependencies: body-parser" ...