Our great sponsors
-
christmas-theme-chatbot
A Christmas theme chatbot implemented using AWS Serverless services and LLM model
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Refactoring the code, adding log information and encapsulating the methods just exposing the handlers one. The full code you can see at my repository here
To interact with the Dynamodb table I used a gem called dynamoid. I created a Connection model in order to use it like Connection.create(connection_id) and Connection.find(connectionId).delete.
# frozen_string_literal: true source 'https://rubygems.org' ruby '>= 3.2.2' gem 'aws-sdk-bedrockruntime'
I chose React as the library to implement the UI and I used some libraries like react-chatbot-kit for the chat component and react-use-websocket to manage the connection with the backend API.
I chose React as the library to implement the UI and I used some libraries like react-chatbot-kit for the chat component and react-use-websocket to manage the connection with the backend API.