Install dependencies:
bun install
Create an OpenAI API key, and put it in a .env file:
cp .env.example .env
echo "$OPENAI_API_KEY" >> .env
To run:
bun dev
Create a Fly.io app:
fly launch
Set the OpenAI API key:
fly secrets set OPENAI_API_KEY=$OPENAI_API_KEY
Deploy to Fly.io:
fly deploy
This project was created using bun init
in bun v1.0.22. Bun
is a fast all-in-one JavaScript runtime.