ga-wdi-exercises/project4

API trouble

Closed this issue · 0 comments

Im using a NodeJS wrapper for my USDA API to get me food nutrition facts which will have information on nutrients. They have sample code, but still not quite sure how to implement it.

Does this mean I should replace USDA_NDB_API_KEY with my API key, because i get a linter error when I do.
const NF = new NutritionFacts(process.env.USDA_NDB_API_KEY);

I am using the MERN stack. Any help getting this API up and running would be appreciated.

https://github.com/eliashussary/nutrition-facts . <---- NodeJS wrapper for API