Know-Your-Student (KYS) is a service for verifying student identities for discounts and other student benefits.
cd web
npm install
cat .env.example > .env.local
npm run devCopy .aws/credentials from the Learner Lab terminal to your local machine.
This aims to deploy a S3 bucket and a DynamoDB table for the API to store images and student information.
cd terraform
terraform init
terraform applyThis terraform script return the name of the S3 bucket and the DynamoDB table. You will need to update the api/.chalice/config.json file with these values:
- Update the field
APP_BUCKET_NAMEinapi/.chalice/config.jsonwith the name of the S3 bucket. - Update the field
APP_TABLE_NAMEinapi/.chalice/config.jsonwith the name of the DynamoDB table. - Update the field
iam_role_arninapi/.chalice/config.jsonwith theLabRoleIAM role ARN from the Learner Lab.
cd api
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pip install -r requirements.txt
chalice localcd api
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pip install -r requirements.txt
chalice deployAnd set NEXT_PUBLIC_API_URL accordingly in .env or .env.local.