- Install all dependencies with
npm run install:all
- Configure AWS account to your PC
NB: You have to use AWS_PROFILE env variable when your AWS account is not set as default
npm run start:api
npm run start:gui
[AWS_PROFILE=[YOUR_PROFILE]] npm run deploy:first
[AWS_PROFILE=[YOUR_PROFILE]] npm run deploy:api
[AWS_PROFILE=[YOUR_PROFILE]] npm run deploy:gui
[AWS_PROFILE=[YOUR_PROFILE]] npm run deploy
[AWS_PROFILE=[YOUR_PROFILE]] npm run logs -- -f [FUNCTION_NAME] [-t] [--startTime [TIME]]
es:
[AWS_PROFILE=[YOUR_PROFILE]] npm run logs -- -f save -t --startTime 30m
[AWS_PROFILE=[YOUR_PROFILE]] npm run logs -- -f read -t --startTime 3d
[AWS_PROFILE=[YOUR_PROFILE]] npm run logs -- -f read -t --startTime 3d
curl -X POST -d '{"title":"Retrospettiva Trento","type":"facilitation","author":"IVO","date":"2019-03-08","links":[{"type":"wiki","url":"https://an.url"}]}' http://localhost:3000/save