Vet Simulator is a T3 Stack project utilizing Next.js, Drizzle ORM, and tRPC. It also uses Tailwind CSS and Radix UI for styling, better-auth for authentication, and integrates with OpenAI and ElevenLabs for AI and voice functionalities. The static files are stored in Vercel Blob Storage, and the backend database is Postgres.
Therefore, before you start running this project, you need to create accounts in ElevenLabs, OpenAI and Vercel. In ElevenLabs, you need to create an agent and obtain its agent_id,before creating an API key for voice generation. In addition, you need to create an API key in OpenAI platform for generating evaluation results. Finally, you should create a Blob storage in Vercel and get its link. For the Postgres database, you could either create an endpoint via Vercel or deploy the database locally with Docker.
After obtaining those links and credentials, you need to set them as environment variables in the .env file in the root of the project.
#.env file
# Required
DATABASE_URL=postgresql://user:password@localhost:5432/mydb
OPENAI_API_KEY=sk-xxxxxxxx
BETTER_AUTH_SECRET=dev-secret
ELEVENLABS_API_KEY=el-xxxxxxxx
ELEVENLABS_AGENT_ID=agent_xxxx
BLOB_READ_WRITE_TOKEN=vercel_blob_xxxx