Truffle npm i -g truffle
Nodejs
Typescript npm i -g typescript
qrcode-terminal npm i -g qrcode-terminal (used to show a QR code in the terminal after deploying to IPFS)
Ganache npm i -g ganache-cli
npm install to install project dependencies
cd to the function folder.
tsc -p tsconfig.json because cloud functions run node 6.
gcloud beta functions deploy charge --trigger-http
npm run ipfs
truffle migrate
or
truffle migrate --network rinkeby