An AI-powered app to generate comments and statistics about the NBA 2016 Finals Game 7 using Drizzle ORM and SingleStore.
- Generate insightful comments on the game using an AI agent
- Provide detailed statistics and analysis based on the video clip
- Utilize Drizzle ORM for database interactions
- Powered by SingleStore for efficient data handling
-
Clone the repository:
git clone [email protected]:singlestore-labs/nba-AI-drizzle-app-demo.git
-
Navigate to the project directory:
cd nba-AI-drizzle-app-demo
-
Install NodeJS
sudo apt install nodejs
-
Install dependencies:
pnpm install
-
Install pnpm
If you get
pnpm not found
when running the previous command, installpnpm
usingnpm
sudo npm i -g pnpm
-
-
Copy the
default.env
file and name it.env
:cp default.env .env
-
Get the
DATABASE_URL
from SingleStore Portal and add it to your.env
file:DATABASE__URL=your_singlestore_db_url
-
Create the
commentary_table
in the SingleStore database using Drizzlepnpm migrate
-
Get the Gemini API key from Google Gemini API Documentation and add it to your
.env
file:GEMINI_API_KEY=your_gemini_api_key
- Start the application:
pnpm dev
- Open your browser and navigate to http://localhost:3001