The TechOps Chatbot backend is a NodeJS
API written in TypeScript
, served with ExpressJS
, secured with Passport
through a secret bearer token and provisioned on AWS using Terraform. The users feedback is stored in a DynamoDB database on AWS using the aws-sdk
and dynamodb-data-mapper
.
Body:
feedbackType
: [Useful | Average | Poor] mandatorytime
: numeric timestamp mandatorycomment
: alphanumeric optional
Bearer Token for every request
feedbackType
: DynamoDB::hashKeytime
: DynamoDB::rangeKeycomment
: DynamoDB::attribute
APP_ENV: Current app environment (prod | dev | qa)
BOT_TOKEN: The secret private token to match against the requests
DB_HOST: The DynamoDB database URL
AWS_DEFAULT_REGION: The AWS app region, ej: us-east-1
AWS_ACCESS_KEY_ID: The AWS access key
AWS_SECRET_ACCESS_KEY The AWS secret for the above access key