colab部署text-to-sql

1.GitHub验证申请:

https://github.com/settings/apps/new

教程(第三方登陆auth(github)_github auth-CSDN博客https://www.ruanyifeng.com/blog/2019/04/github-oauth.html

复制代码
git clone https://github.com/supabase-community/postgres-new.git

3..env.example改为.env

复制代码
SUPABASE_AUTH_GITHUB_CLIENT_ID=Iv23linqH7
SUPABASE_AUTH_GITHUB_SECRET=2b41e6ae04d0445a
SUPABASE_AUTH_GITHUB_REDIRECT_URI=http://localhost:54321/auth/v1/callback

4.数据库配置

复制代码
cd ./postgres-new/apps/db-service

npm run generate:certs

sudo npm install pg-gateway@^0.2.5-alpha.2

npm run dev


psql "host=localhost port=5432 user=postgres"

psql "host=localhost port=5432 user=postgres password=postgres"

5.启动项目

复制代码
cd ./postgres-new/apps/postgres-new

npm i

npx supabase start

npx supabase status -o env \
  --override-name api.url=NEXT_PUBLIC_SUPABASE_URL \
  --override-name auth.anon_key=NEXT_PUBLIC_SUPABASE_ANON_KEY |
    grep NEXT_PUBLIC >> .env.local

echo 'OPENAI_API_KEY="<openai-api-key>"' >> .env.local

npm run dev
相关推荐
Akamai中国28 分钟前
基准测试:Akamai云上的NVIDIA RTX Pro 6000 Blackwell
人工智能·云计算·云服务·云存储
雨大王51233 分钟前
汽车AI智能体矩阵:驱动行业智能化变革的新范式
人工智能·汽车
SmartRadio1 小时前
在CH585M代码中如何精细化配置PMU(电源管理单元)和RAM保留
linux·c语言·开发语言·人工智能·单片机·嵌入式硬件·lora
旦莫1 小时前
Pytest教程:Pytest与主流测试框架对比
人工智能·python·pytest
●VON1 小时前
从模型到价值:MLOps 工程体系全景解析
人工智能·学习·制造·von
智慧地球(AI·Earth)1 小时前
Codex配置问题解析:wire_api格式不匹配导致的“Reconnecting...”循环
开发语言·人工智能·vscode·codex·claude code
GISer_Jing1 小时前
AI:多智能体协作与记忆管理
人工智能·设计模式·aigc
qq_411262421 小时前
纯图像传感器(只出像素),还是 Himax WiseEye/WE1/WE-I Plus 这类带处理器、能在端侧跑模型并输出“metadata”的模块
人工智能·嵌入式硬件·esp32·四博智联
InfiSight智睿视界2 小时前
门店智能体技术如何破解美容美发连锁的“标准执行困境”
大数据·运维·人工智能