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 https://github.com/singlestore-labs/nba-AI-drizzle-app-demo.git
-
Navigate to the repository:
cd nba-AI-drizzle-app-demo
-
Copy the
default.env
file and name it.env
:cp default.env .env
-
Get the
DATABASE_URL
from SingleStore Portal. If you are creating a new account, when prompted to Load Data, choose instead Explore on my own. Then go to Deployments (on the left sidebar) > Connect > Your App and pick languageNode.js + Drizzle
in the dropdown. Then, copy the connection string and add it to your.env
file:DATABASE_URL=singlestore://<user>:<password>@<host>:<port>/<database>?ssl={}
(Note: if your connection string has a placeholder in the password field, press Reset Password, accept the suggested password, and you can now copy the connection string with the password).
-
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:
docker compose up --build
- Open your browser and navigate to http://localhost:3001
- Setup the repository and run the app
- The comments are a bit lame; fix them! Search for
TODO(milestone2)
- The analytics we're showing are mocked-up; fetch them from the DB! Search for
TODO(milestone3)