Nodemon only watches a subset of files in the dorectory. You can instruct nodemon to look for changes to .env by telling it what to watch in the nodemon command, e.g.: nodemon -w . -w .env server.js
Wactch out for every path which set in js pr .env
Cors problem is solved by using cors module in this example
Basic test card numbers can be obtained from testing