Skip to content

Latest commit

 

History

History

nextjs

BaseAI Next.js Example

BaseAI Next.js example.

Please read the documentation for more information.

# Make sure to copy .env.baseai.example file and
# create .env file and add all the API keys in it
cp .env.baseai.example .env

# Run the local baseai dev server to test the examples (uses localhost:9000 port)
npx baseai dev

# Run Nextjs locally
npm run dev

# You should see several examples you can try out in the browser
# Check the following directories inside `examples/nextjs/` directory
# - /app/api/langbase/pipes (API Route handlers for pipes)
# - /app/demo (examples of using the BaseAI)
# - /components/ (BaseAI based react components)

For more questions, please reach out to us on our new Discord community or 𝕏/Twitter.