yarn dev:mac_os
will serve badge renders tohttp://localhost:3000/:campaign_id/:user_id.png
using the default Chrome path on MacOS. For other paths runenv CHROME_PATH=<path_to_chrome> nodemon local.js
yarn format
with prettify the source files
We deploy to a lambda of architecture amd64
SSH into EC2 instance of architecture amd64 and do:
- Clone and
cd
into this repository rm -rf node_modules
npm install --only=prod
zip -r index index.js render.js node_modules
(make sure there isn't any extra stuff in node_modules
Now back on your local machine:
scp
the.zip
that was just created locally- Upload the
.zip
to the Lambda web interface - (optional) extract the
.zip
locally so you can reusenode_modules
and skip the EC2 step untilpackage.json
changes