Use Typescript and Vite to interface with the OpenAI API.
Tilt up Ubuntu Linux on an AWS 64-bit CISC EC2 Instance (t2.micro for example). Login via ssh and run the following commands in a bash script:
ssh-keygen
cat /home/ubuntu/.ssh/id_ed25519.pub
echo "copy the key and add it to the list of key with access to GitHub then press any key to continue..."
read -s -n 1
echo "Continuing..."
git clone git@github.com:infectiouscontent/vite-typescript-openai-api-development.git
cd vite-typescript-openai-api-development
bash scripts/setup.bash
When the vi dialog opens, enter the OPENAI_API_KEY. For example:
OPENAI_API_KEY=tHi$!zMy)p3N@IpaSswUd