Git Product home page Git Product logo

langchain-template-supabase's Introduction

supabase-template

Get started

  1. Clone this repo

  2. Install dependencies, including the Supabase CLI

yarn

Note: If you install the Supabase CLI using a different method you have to make sure you are on version 1.49.4 as more recent versions currently suffer from an issue which prevents this from working correctly.

  1. Create frontend env file
cp .env.example .env
  1. Create supabase functions env file
echo "OPENAI_API_KEY=sk-xxx" > supabase/.env
  1. Start the supabase project
npx supabase start
  1. Start the supabase functions locally
yarn supabase:dev
  1. Start the frontend locally
yarn dev
  1. Open http://localhost:3100 with your browser to see the result.

Deploy

  1. Create a new project on Supabase

  2. Create a new project on Vercel

  3. To deploy the frontend, connect your Vercel project to your GitHub repo and push to main.

  4. To deploy the supabase functions, first login to Supabase:

npx supabase login

Then, link your project:

npx supabase link --project-ref <project-ref>

Then, deploy the functions:

yarn supabase:deploy

Optionally, if you're also using the Supabase Vector Store from LangcChain, you'll need to push the schema to the database:

supabase db push

langchain-template-supabase's People

Contributors

nfcampos avatar madisonmay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.