Creating a web service endpoint to handle skill requests
In the previous sections, you created a Henry's Kitchen skill that sends the recipe ideas. The Node.js server endpoint will fulfill Henry's Kitchen skill requests by querying a third-party service called Spoonacular (https://spoonacular.com/food-api). Spoonacular will provide food recommendations to the endpoint service to construct the response that will be sent back to the user.
Here are the steps necessary to create Node.js code for the endpoint web service:
- Open Visual Studio Code.
- You are going to write some Node.js codes to handle Alexa skill requests. Before you begin, create three files:
server.js
: This is the Node.js server's entrypoint to execute the server code.package.json
: This contains the Node.js dependencies required to executeserver.js
. When you typenpm install
on the Node.js Command Prompt wherepackage.json
is, all of the Node.js dependencies will be installed.web.config
: This is the configuration file to run Node...