Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (46 loc) · 2.51 KB

File metadata and controls

64 lines (46 loc) · 2.51 KB

lambda-askjeeves

Experimental Basecamp chatbot for answering questions from Case's benefits documents.

This project uses AWS Kendra to index items in the documents folder.

Development Dependencies

After those packages are installed, you will need to do the following:

Change directory to your preferred location to pull the git repository.

git clone git@github.com:caseconsulting/lambda-askjeeves.git
cd lambda-askjeeves
npm install

At this point, the necessary dependencies for development are installed.

Additional setup steps

We will need to have your AWS credentials added to your current user, so you will need to have AWS CLI installed.

aws configure

Use your credentials from cat ~/.aws/credentials from your AWS WorkSpace.

Running the project locally

NOTE: Unfortunately, we cannot run this project locally within AWS WorkSpaces. If you choose to use AWS workspaces as your primary development location, you will need to deploy the project each time you want to test new code.

Open two separate tabs in your Terminal application.

Server: To run the lambda function via sam-cli within Docker, run the following in tab #1:

npm run docker-local

Client: To ask the locally-running chatbot questions without going to Basecamp, run the following in tab #2:

node bin/console.js

Deployment to AWS Lambda

To deploy this project to AWS Lambda, you will need to have the AWS CLI set up on the machine you will deploy from. You'll need your IAM credentials in place. If you do not want to set this up on your local machine, you may run the deployment command from your AWS WorkSpace.

When you are ready to deploy new code, run:

npm run deploy