Open Mcgurk-Adam opened 2 years ago
Put this in the package.json:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"bootstrap-env": "export $(cat .env | xargs)",
"lambda-call": "node -e \"require('./index').handler(require('./event.json'));\"",
"locally": "npm run bootstrap-env & npm run lambda-call"
},
I need a blog post about how you test AWS locally without all the hoopla:
It would also be nice to init env variables that way too