-
create a folder
canvas
in your current project -
add
index.js
withmodule.exports = {}
to that folder. -
Reference module in package.json: "canvas": "file:./canvas",
-
run yarn
- yarn add custom-env
- require('custom-env').env()
- set API_URL environment variable
- yarn run lambda-build
- git commit -a -m 'msg'
- git push -u origin master
- This is automatically deployed to: https://lucid-thompson-2e0bb4.netlify.com/
- uncomment require('custom-env').env()
- change js/app.js to point to localhost
- yarn run lambda-serve
- run python -m SimpleHTTPServer 8089
- navigate to http://127.0.0.1:8089