-
install aws CLI: pip install awscli
-
execute command 'aws configure'
-
brew install aws-sam-cli
-
Create a public s3 bucket on AWS console
-
cd /path/to/server
-
sam package --template-file template.yaml --output-template-file packaged.yaml --s3-bucket {bucket-name} (replace with the bucket name you just created)
-
sam deploy --template-file packaged.yaml --stack-name befree --capabilities CAPABILITY_IAM
-
modify 'host' property in server/config/default.js according to your RDS AWS console
-
redeploy by repeating step 3 and 4
-
Execute initFunction manually on Lambda AWS console. This create matches table in RDS.
-
Execute crawlerFunction manually on Lambda AWS console. This pulls data from api and write it to matches table.
-
modify each property in website/config.js according to your Lambda and Cognito AWS console
-
npm install http-server -g
-
cd path/to/website
-
http-server .
Open S3 AWS console and upload everything in website directory to your S3 bucket