### Setup Drizzle Environment Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/packages/local-first/README.md Copy the example environment file and push your Drizzle schema to the database. ```sh cp .env.example .env npx drizzle-kit push ``` -------------------------------- ### Start Svelte Development Server Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/apps/web/README.md Run 'npm run dev' to start the development server. Use '-- --open' to automatically open the application in your browser. ```sh npm run dev # or start the server and open the app in a new browser tab npm run dev -- --open ``` -------------------------------- ### Build Worker and Activities Code Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/apps/worker/README.md Build the worker script and activities code. This command should be run before starting the production worker. ```bash npm run build ``` -------------------------------- ### Connect to PostgresDB Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/docs/tips.md Use this command to connect to your Postgres database. Replace 'user' and 'postgres' with your actual username and database name. ```bash psql -U user -d postgres ``` -------------------------------- ### List Tables in PostgresDB Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/docs/tips.md Once connected to your Postgres database, use this command to list all tables. ```bash \dt ``` -------------------------------- ### Create a New Svelte Project Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/apps/web/README.md Use 'npx sv create' to initialize a new Svelte project. You can create it in the current directory or specify a project name. ```sh npx sv create npx sv create my-app ``` -------------------------------- ### Build Workflow Code Bundle Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/apps/worker/README.md Build the Workflow code bundle using the provided script. This is a necessary step for production deployments that utilize prebuilt bundles. ```bash npm run build:workflow ``` -------------------------------- ### Generate SQL Schema with Drizzle Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/packages/local-first/README.md Run this command to generate SQL files from your Drizzle schema. ```sh npm run generate ``` -------------------------------- ### Run Production Worker Source: https://github.com/anthonywong555/temporal-vercel-ai-sdk-demo/blob/main/apps/worker/README.md Execute the production worker script after building the worker and activities code. Ensure the NODE_ENV is set to 'production'. ```bash NODE_ENV=production node lib/worker.js ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.