Chat with your database using Text to SQL
Create a .env file with the following:
OPENAI_API_KEY="sk-"
DATABASE_URL="postgres://USER:PASSWORD@POSTGRES_HOST:5432/DB_NAME?sslmode=require"
USERNAME="admin"
USER_PASSWORD="&gK4@#j!1!E#O"
Then run
bun i
bun dev
Your app should now be running on localhost:3000.
This app was created by Philipp Tsipman @ Camcorder AI.
It is based on Rhys Sullivan's HogChat and the Vercel AI RSC Demo.