This application allows users to generate and edit a list of facts based on a user-provided topic, leveraging OpenAI's language model and streaming the response back to the client.
📖 For more information on the underlying technologies, see the Remix docs and the Remix Vite docs.
Before development or deployment, make sure to set up your environment variables:
- Copy the
.env.examplefile to.env:cp .env.example .env
- Obtain an API key from OpenAI and paste it into the
.envfile. For more details on getting an API key, visit the OpenAI documentation.
Run the Vite dev server:
npm run dev
First, build your app for production:
npm run buildThen run the app in production mode:
npm startNow you'll need to pick a host to deploy it to.