Clone the starter code at https://github.com/PacktPublishing/Hands-on-JavaScript-for-Python-Developers/tree/master/chapter-15/recipe-book/. Be sure to execute npm install both in that directory and inside client. We'll also need to do a few setup pieces to access our API. To access the Edamam API, sign up for a free API key at https://developer.edamam.com/ for the Recipe Search API.
At the root level of our project, create a .env file and populate it as follows:
APPLICATION_ID=<your id>
APPLICATION_KEY=<your key>
Note that these are constructed as environment variables and don't have semicolons or spaces.
The next step we'll do is ensure our application can read these variables. Near the end of app.js, you'll see this:
console.log(process.env.APPLICATION_ID, process.env.APPLICATION_KEY);
This construction of process.env.<variable name> is how we access the environment variables in .env. The mechanism that provides this...