This is a tool for the creation and undergoing of multiple-choice tests that may or may not be time-limited.
This solution implements the following services:
- An AWS account and an IAM user associated with that account
- AWS Command Line Interface
- AWS SAM Command Line Interface
- Docker
- Yarn
# Run local API Gateway
sam local start-api
# Run local front-end
cd front-end
yarn start
# Create a bucket containing your deployments
aws s3api create-bucket --bucket my-deployment-bucket
aws cloudformation package --s3-bucket my-deployment-bucket --template template.yml --output-template-file packaged-template.yml
aws cloudformation deploy --stack-name MyServerlessTimedTests --template packaged-template.yml --capabilities CAPABILITY_IAM
cd frontend
yarn run build
aws s3 sync ./build s3://$(aws cloudformation describe-stacks --stack-name MyServerlessTimedTests | jq ".Stacks[0].Outputs[0].OutputValue") --acl public-read