returnconsole.log(`We were unable to find ${req.query.name}`);
In case of failing to find the requested query, error is printed to server's console but response with 404 status is not sent thy browser. So, browser keeps waiting for the response.
nodemon isn't for deployment. It is a utility that speeds up the development process removing the need for restarting the server everytime we change the code.
If the server crashes due to a bug in the code, nodemon waits for change in any code. There may also occur any permission issues elsewhere because nodemon is installed inside the nodemodules of the project when deploying elsewhere. (cloud)
So, set npm start script to node and add a dev script to start with nodemon. This is a commonly used convention.
It is not a good idea to embed api key in the code, especially when you are putting your code in public.
As the number of api calls per api calls is limited and many people using the same api key may cause problems.
It is better to store apikey as an environment variable and add instructions to developers to get their own api key. (it ain't that hard)