Install dependencies:
bun installCreate an OpenAI API key, and put it in a .env file:
cp .env.example .env
echo "$OPENAI_API_KEY" >> .envTo run:
bun devCreate a Fly.io app:
fly launchSet the OpenAI API key:
fly secrets set OPENAI_API_KEY=$OPENAI_API_KEYDeploy to Fly.io:
fly deployThis project was created using bun init in bun v1.0.22. Bun
is a fast all-in-one JavaScript runtime.