Use pnpm!
corepack install pnpm
Then install dependencies
pnpm install
Setup .env
file following .env.sample
example
- Register for OpenAI API
- Register for Langsmith API
Run development mode
pnpm dev
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