Setup
Setup and run your LangBear app.
LangBear primarily supports Supabase as a database provider.
Create and configure a new LangBear app with Supabase
First, navigate to Supabase and create a new project on Supabase. You’ll need to create an account if you don’t already have one.
Then create a new LangBear app with the --database
flag set to supabase
.
The create-langbear-app
command will set up your Supabase project with the tables LangBear needs.
Configure an existing LangBear app with Supabase
If you already have a LangBear app and want to switch to Supabase, open langbear.json
and set the database
property to supabase
.
Open .env
and set the SUPABASE_URL
and SUPABASE_KEY
variables.
Start your app
Start your app with npm run dev
and open http://localhost:3030 in your browser.
Custom ports
LangBear application uses port 3030 by default. You can use the PORT
environment variable to customize the port LangBear application runs on. For example, use this command to run in port 3333:
In the next section, we’ll learn how to deploy the LangBear app to Vercel.