BFF is a powerful orchestrator designed to streamline and optimize interactions with various APIs, providing a seamless experience for frontend applications. It serves as a central hub, combining the functionalities of Bhashini APIs for translations, Automatic Speech Recognition (ASR), Speech-to-Text, Text-to-Speech, and PM Kisan APIs, specifically catering to Farmers' Aadhaar status and OTP services.
API Orchestration
Xstate for Flow Control
Additional Features:
Telemetry for Metrics
BFF provides built-in telemetry features to collect and analyze metrics. This data is crucial for understanding system performance and user behavior. The metrics can be visualized on tools like Grafana, offering valuable insights into the system's health and usage patterns.
Logging
Comprehensive logging mechanisms are implemented to capture relevant information during the execution of the bot. This aids in debugging, monitoring, and maintaining a transparent record of activities.
To integrate BFF into your project, follow these steps:
Clone the repository.
git clone https://github.com/AgrI-Mitra/bff.git
Setting up the server
# Setup DB and Hasura
# For Local:
docker-compose -f ./docker-compose.local.yaml up -d --build
# For Server:
ocker-compose up -d
# Migrate Database
npx prisma migrate dev
# Due to a certain glitch in the matrix, doing it twice works for dev setup.
# Start dev server
yarn start:dev