Before loading this file start the server in the same directory this file exists by running:
node -r esm index.js
Your redis server must also be running on localhost at port 6379 unless you change the Redis setup in index.js.