### Local Quickstart: Installing Node.js Dependencies (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command installs all required Node.js packages and dependencies for the Chatbot UI project. It must be run in the root directory of the cloned repository to ensure all necessary libraries are available for the application to function correctly. ```bash npm install ``` -------------------------------- ### Starting Local Supabase Services (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command initializes and starts the local Supabase services, including the database and other necessary components. It must be run from the root of the Chatbot UI repository after installing the Supabase CLI. ```bash supabase start ``` -------------------------------- ### Setting Up Environment Variables: Copying Example File (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command copies the example environment variable file (`.env.local.example`) to create a new `.env.local` file. This new file will store sensitive configuration details like API keys and URLs, which need to be filled in manually. ```bash cp .env.local.example .env.local ``` -------------------------------- ### Installing Supabase CLI on Windows (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md These commands add the Supabase Scoop bucket and then install the Supabase CLI on Windows systems using Scoop. The Supabase CLI is required for local Supabase setup and management. ```bash scoop bucket add supabase https://github.com/supabase/scoop-bucket.git scoop install supabase ``` -------------------------------- ### Installing Supabase CLI on MacOS/Linux (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command installs the Supabase Command Line Interface (CLI) on MacOS or Linux systems using Homebrew. The Supabase CLI is essential for managing local Supabase instances and interacting with Supabase projects. ```bash brew install supabase/tap/supabase ``` -------------------------------- ### Local Quickstart: Cloning Chatbot UI Repository (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command clones the official Chatbot UI GitHub repository to your local machine. It's the first step in setting up a local development environment, creating a copy of the entire project codebase. ```bash git clone https://github.com/mckaywrigley/chatbot-ui.git ``` -------------------------------- ### Running Chatbot UI Application Locally (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command starts the Chatbot UI application in a local development environment. Once executed, the application will typically be accessible via a web browser at `http://localhost:3000`, allowing for local testing and development. ```bash npm run chat ``` -------------------------------- ### Retrieving Supabase Configuration Status (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command displays the current status and configuration details of your local Supabase instance, including the API URL and service role key. These values are crucial for configuring the `.env.local` file and the SQL setup. ```bash supabase status ``` -------------------------------- ### Logging into Supabase CLI (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command initiates the login process for the Supabase CLI, authenticating your local environment with your Supabase account. It is a prerequisite for linking and pushing database changes, ensuring secure access to your Supabase projects. ```bash supabase login ``` -------------------------------- ### Linking Local Repository to Supabase Project (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command links your local Chatbot UI repository to a specific Supabase project using its unique Project ID. This connection is essential for managing and pushing database migrations from your local environment to the hosted Supabase instance, establishing the necessary bridge for development. ```bash supabase link --project-ref ``` -------------------------------- ### Pushing Database Migrations to Supabase (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command applies local database migrations to your linked Supabase project, synchronizing your hosted database schema with the changes defined in your local migration files. It ensures your Supabase database is up-to-date with your application's requirements, reflecting any schema modifications. ```bash supabase db push ``` -------------------------------- ### Updating Chatbot UI: Applying Database Migrations (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md For hosted instances, this command applies the latest database migrations to the live database. It ensures that the database schema is up-to-date with the current version of Chatbot UI, preventing potential compatibility issues. ```bash npm run db-push ``` -------------------------------- ### Updating Chatbot UI: Running `npm run update` (Bash) Source: https://github.com/mckaywrigley/chatbot-ui/blob/main/README.md This command updates the local Chatbot UI repository to the latest version. It should be run in the terminal at the root of your local Chatbot UI repository to ensure all project dependencies and files are synchronized with the latest release. ```bash npm run update ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.