Skip to content

heroku-examples/build-ai-apps-talk

Repository files navigation

Build AI Applications with Node.js and LangChain

Install

Use pnpm!

corepack install pnpm

Then install dependencies

pnpm install

Development

Setup .env file following .env.sample example

  • Register for OpenAI API
  • Register for Langsmith API

Run development mode

pnpm dev

Deployment

Create an Heroku app and add Postgres support

heroku create <app-name>
heroku addons:create heroku-postgresql:essential-0

Setup the schema

heroku pg:psql -f data/schema.sql

Setup the environment variables on Heroku

heroku config:set CONFIG_VAR=value

Deploy to Heroku!

git push heroku main

About

Build AI Apps with LangChain and Node.js Talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published