This serverless function will pull 2 questions (configurable) from leetcode service and insert into the mongodb that is in Assignment 4.
It uses the same mongodb as Assignment 4. Running Assignment 4 services will allow the user to see changes in the mongodb with a nicer frontend
Prerequisite AWS CLI
aws configure # enter your AWS IAM Credentials
cd assignments/assignment_6/
npm install -g serverless
serverless plugin install --name serverless-python-requirements
serverless
It prompt a CLI tool. First question will ask you to login into Serverless Dashboard (N) Second question will ask if you want to deploy (Y)
Then it will deploy and provide the endpoint