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 dev
Copy .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 apply
This 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_NAME
inapi/.chalice/config.json
with the name of the S3 bucket. - Update the field
APP_TABLE_NAME
inapi/.chalice/config.json
with the name of the DynamoDB table. - Update the field
iam_role_arn
inapi/.chalice/config.json
with theLabRole
IAM 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 local
cd api
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pip install -r requirements.txt
chalice deploy
And set NEXT_PUBLIC_API_URL
accordingly in .env
or .env.local
.