### Run the @undb/share Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/share/README.md This command executes the main entry point of the `@undb/share` application, `src/index.ts`, using the Bun runtime. It's the standard way to start the project after dependencies are installed. ```bash bun run src/index.ts ``` -------------------------------- ### Starting a Svelte development server Source: https://github.com/undb-io/undb/blob/develop/apps/frontend/README.md Commands to start the development server for a Svelte project, with an option to automatically open the application in a new browser tab. ```bash npm run dev npm run dev -- --open ``` -------------------------------- ### Install Dependencies for @undb/graphql Project Source: https://github.com/undb-io/undb/blob/develop/packages/graphql/README.md This command installs all necessary project dependencies using the Bun package manager, ensuring the project is ready for execution. ```bash bun install ``` -------------------------------- ### Install Project Dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/share/README.md This command utilizes the Bun package manager to install all required dependencies for the `@undb/share` project. Ensure Bun is installed and configured correctly before running. ```bash bun install ``` -------------------------------- ### Local Development Setup for undb Source: https://github.com/undb-io/undb/blob/develop/README.md Steps to set up and run the undb application locally for development. This involves cloning the repository, installing dependencies using Bun, and starting the development server. ```bash git clone https://github.com/undb-io/undb.git cd undb ``` ```bash bun install ``` ```bash bun run dev ``` -------------------------------- ### Run Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/di/README.md This command executes the main entry point of the application, `src/index.ts`, using the Bun runtime. It is used to start the application for development or production purposes. ```bash bun run src/index.ts ``` -------------------------------- ### Run the main application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/i18n/README.md This command executes the main application entry point, `src/index.ts`, using the Bun runtime. It's the standard way to start the application for development or production. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/commands/README.md This command installs all necessary project dependencies as defined in the project's package.json or similar configuration file, leveraging Bun's fast package management capabilities. ```bash bun install ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/persistence/README.md This command executes the main application entry point, `src/index.ts`, using the Bun runtime. It's typically used to start the development server, run a script, or launch the application in a local environment. ```bash bun run src/index.ts ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/data-service/README.md Installs all necessary project dependencies as defined in the project's package configuration using the Bun package manager. ```bash bun install ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/di/README.md This command uses the Bun package manager to install all required dependencies for the project. It ensures that all necessary libraries and modules are available before running the application. ```bash bun install ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/commands/README.md This command executes the main entry point of the application, `src/index.ts`, using the Bun runtime. It's typically used to start the development server or run the application's core logic. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/persistence/README.md This command installs all required project dependencies as specified in the project's manifest file (e.g., package.json), leveraging Bun's fast package management capabilities. It ensures all necessary libraries and modules are available for development and execution. ```bash bun install ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/command-handlers/README.md This command installs all necessary project dependencies as specified in the `package.json` or equivalent manifest file. It utilizes Bun's fast package manager to fetch and link packages. ```bash bun install ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/event-handlers/README.md Installs all necessary project dependencies using the Bun package manager. This command reads the project's dependency manifest and downloads the required packages. ```bash bun install ``` -------------------------------- ### Run Project Entry Point with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/env/README.md This command executes the main entry point of the project, `src/index.ts`, using the Bun runtime. It is typically used to start the application or run the primary script. ```bash bun run src/index.ts ``` -------------------------------- ### Install Node.js Dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/user/README.md This command utilizes the Bun runtime's built-in package manager to install all required project dependencies. It's an optimized alternative to `npm install` or `yarn install`, leveraging Bun's speed for package management. ```bash bun install ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/i18n/README.md This command installs all required project dependencies as specified in the project's configuration files (e.g., package.json or bun.lockb), leveraging Bun's fast package manager. ```bash bun install ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/mail/README.md This command installs all necessary project dependencies using the Bun package manager. It ensures all required modules are available for the application to run correctly. ```bash bun install ``` -------------------------------- ### Run @undb/graphql Project Source: https://github.com/undb-io/undb/blob/develop/packages/graphql/README.md This command executes the main entry point of the `@undb/graphql` project, `src/index.ts`, using the Bun runtime. ```bash bun run src/index.ts ``` -------------------------------- ### Run the @undb/space application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/space/README.md This command executes the main application entry point, `src/index.ts`, using the Bun runtime. It starts the @undb/space application, making it ready for development or production use. ```bash bun run src/index.ts ``` -------------------------------- ### Run @undb/mail Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/mail/README.md This command executes the main application entry point (`src/index.ts`) for the `@undb/mail` project using the Bun runtime. It starts the mail service or related processes. ```bash bun run src/index.ts ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/env/README.md This command uses the Bun package manager to install all required dependencies for the project. It ensures that all modules specified in the project's configuration are downloaded and ready for use. ```bash bun install ``` -------------------------------- ### Install Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/zod/README.md Installs all project dependencies using the Bun package manager. This command is essential for setting up the development environment after cloning the repository, ensuring all required packages are available for the project to run correctly. ```bash bun install ``` -------------------------------- ### Run the Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/event-handlers/README.md Executes the main application entry point, `src/index.ts`, using the Bun runtime. This command is typically used to start the application for development or testing. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/space/README.md This command uses the Bun package manager to install all required dependencies for the @undb/space project. It should be executed once after cloning the repository to ensure all necessary packages are available. ```bash bun install ``` -------------------------------- ### Install project dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/cqrs/README.md This command utilizes the Bun package manager to install all necessary project dependencies. It's a fundamental step required to set up the development environment or prepare the application for execution. ```bash bun install ``` -------------------------------- ### Install Dependencies for @undb/trpc Project Source: https://github.com/undb-io/undb/blob/develop/packages/trpc/README.md This command installs the necessary project dependencies using Bun's package manager. It is a prerequisite for running the application and ensures all required packages are available. ```bash bun install ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/cqrs/README.md This command executes the primary application entry point, `src/index.ts`, using the Bun runtime. It initiates the application, making it ready for testing or production use. ```bash bun run src/index.ts ``` -------------------------------- ### Run the Data Service Project with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/data-service/README.md Executes the main entry point of the data service project, located at `src/index.ts`, using the Bun runtime. ```bash bun run src/index.ts ``` -------------------------------- ### Building a Svelte project for production Source: https://github.com/undb-io/undb/blob/develop/apps/frontend/README.md Command to compile a Svelte application into a production-ready build, which can then be previewed. ```bash npm run build ``` -------------------------------- ### Creating a new Svelte project Source: https://github.com/undb-io/undb/blob/develop/apps/frontend/README.md Commands to initialize a new Svelte project using `npm create svelte@latest`, either in the current directory or a specified directory name. ```bash npm create svelte@latest npm create svelte@latest my-app ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/realtime/README.md This command installs all required project dependencies using the Bun package manager. It's the first step to set up the project locally. Ensure Bun is installed and configured on your system before running this command. ```bash bun install ``` -------------------------------- ### Run Bun TypeScript Application Source: https://github.com/undb-io/undb/blob/develop/packages/zod/README.md Executes the main TypeScript application file (`src/index.ts`) using the Bun runtime. This command is used to start the application, leveraging Bun's performance for JavaScript and TypeScript execution. ```bash bun run src/index.ts ``` -------------------------------- ### Install Dependencies for @undb/queries with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/queries/README.md This command installs all necessary project dependencies using the Bun package manager. Ensure Bun is installed and configured on your system before running this command. ```bash bun install ``` -------------------------------- ### Run undb with Docker Compose Source: https://github.com/undb-io/undb/blob/develop/README.md Command to start the undb service using Docker Compose, simplifying the setup for development environments. ```bash docker compose up -d ``` -------------------------------- ### Run the Project with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/openapi/README.md Executes the main entry point of the project, `src/index.ts`, using the Bun runtime. This command starts the application. ```bash bun run src/index.ts ``` -------------------------------- ### Run the application entry point with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/table/README.md This command executes the main application file `src/index.ts` using the Bun runtime. It serves as the primary way to start and run the application. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/table/README.md This command installs all required project dependencies as specified in the project's configuration files, leveraging the Bun package manager for efficient dependency resolution and installation. ```bash bun install ``` -------------------------------- ### Run @undb/domain Project Source: https://github.com/undb-io/undb/blob/develop/packages/domain/README.md This command executes the main entry point of the `@undb/domain` project, located at `src/index.ts`, using the Bun runtime. It starts the application's core functionality. ```bash bun run src/index.ts ``` -------------------------------- ### Install Dependencies for @undb/base Source: https://github.com/undb-io/undb/blob/develop/packages/base/README.md Instructions to install project dependencies using Bun's package manager. This command fetches and sets up all required packages defined in the project's configuration. ```bash bun install ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/template/README.md Installs all required project dependencies for the `@undb/template` project using the Bun package manager. This command fetches and sets up all packages listed in the project's dependency manifest. ```bash bun install ``` -------------------------------- ### Run @undb/queries Project with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/queries/README.md This command executes the main entry point of the @undb/queries project using the Bun runtime. It starts the application defined in `src/index.ts`. ```bash bun run src/index.ts ``` -------------------------------- ### Run the @undb/webhook application Source: https://github.com/undb-io/undb/blob/develop/packages/webhook/README.md This command executes the main application entry point, `src/index.ts`, using the Bun runtime. It starts the `@undb/webhook` application, making its functionality available. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/query-handlers/README.md This command installs all required project dependencies as specified in the project's configuration files (e.g., package.json, bun.lockb) using the Bun package manager. ```bash bun install ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/openapi/README.md Installs all required project dependencies using the Bun package manager. This command should be executed in the root directory of the project. ```bash bun install ``` -------------------------------- ### Run @undb/authz Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/authz/README.md This command executes the main application entry point (`src/index.ts`) using the Bun runtime, starting the @undb/authz project. ```bash bun run src/index.ts ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/template/README.md Executes the main application entry point `src/index.ts` for the `@undb/template` project using the Bun runtime. This command starts the application as defined in the project's configuration. ```bash bun run src/index.ts ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/context/README.md This command installs all required dependencies for the project. It utilizes the Bun package manager, ensuring efficient and fast dependency resolution. ```bash bun install ``` -------------------------------- ### Install dependencies for @undb/formula project Source: https://github.com/undb-io/undb/blob/develop/packages/formula/README.md This command installs all necessary project dependencies using the Bun package manager, ensuring the project is ready for execution. ```bash bun install ``` -------------------------------- ### Execute Main Project File with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/utils/README.md This command runs the primary entry point of the project, `src/index.ts`, using the Bun runtime. It's the standard method to start or execute the application. ```bash bun run src/index.ts ``` -------------------------------- ### Install Dependencies for @undb/domain Project Source: https://github.com/undb-io/undb/blob/develop/packages/domain/README.md This command uses the Bun package manager to install all required dependencies for the `@undb/domain` project. It ensures that the project's environment is set up correctly for development or execution. ```bash bun install ``` -------------------------------- ### Install Project Dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/utils/README.md This command uses the Bun package manager to install all required project dependencies. Bun is a fast, all-in-one JavaScript runtime that handles package management efficiently. ```bash bun install ``` -------------------------------- ### Install Dependencies for @undb/authz with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/authz/README.md This command installs all necessary project dependencies using the Bun package manager, which is a fast all-in-one JavaScript runtime. ```bash bun install ``` -------------------------------- ### Install project dependencies using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/logger/README.md This command installs all required project dependencies as specified in the project's manifest file (e.g., package.json), leveraging Bun's fast package management capabilities. It ensures all necessary packages are available for development and execution. ```bash bun install ``` -------------------------------- ### Install Dependencies for @undb/audit Source: https://github.com/undb-io/undb/blob/develop/packages/audit/README.md This command installs all required project dependencies using Bun's package manager. It ensures that the development environment is set up correctly before running the application. ```bash bun install ``` -------------------------------- ### Start Elysia Development Server with Bun Source: https://github.com/undb-io/undb/blob/develop/apps/backend/README.md This command starts the development server for the Elysia application using Bun. It typically enables features like hot-reloading and serves the application on a local port, commonly http://localhost:3721/, for testing and development. ```bash bun run dev ``` -------------------------------- ### Install Project Dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/dashboard/README.md This command installs all necessary project dependencies using the Bun package manager. It's typically the first step after cloning the repository to ensure all required packages are available. ```bash bun install ``` -------------------------------- ### Install project dependencies with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/webhook/README.md This command installs all required project dependencies for the `@undb/webhook` project using the Bun package manager, ensuring all necessary modules are available for execution. ```bash bun install ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/logger/README.md This command executes the main entry point of the application, `src/index.ts`, using the Bun runtime. It's typically used to start the application, a development server, or a specific script defined in the project's configuration. ```bash bun run src/index.ts ``` -------------------------------- ### Run the @undb/dashboard Project with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/dashboard/README.md This command executes the main application entry point (`src/index.ts`) using the Bun runtime. It starts the @undb/dashboard application, making it accessible for use. ```bash bun run src/index.ts ``` -------------------------------- ### Run the Project's Main Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/command-handlers/README.md This command executes the main entry point of the `@undb/command-handlers` project, which is located at `src/index.ts`. It uses Bun's runtime capabilities to directly run the TypeScript file. ```bash bun run src/index.ts ``` -------------------------------- ### Run @undb/audit Project Source: https://github.com/undb-io/undb/blob/develop/packages/audit/README.md This command executes the main application file for the @undb/audit project using Bun. It starts the application from the `src/index.ts` entry point. ```bash bun run src/index.ts ``` -------------------------------- ### Run @undb/formula project Source: https://github.com/undb-io/undb/blob/develop/packages/formula/README.md This command executes the main TypeScript file (`src/index.ts`) of the @undb/formula project using the Bun runtime, starting the application. ```bash bun run src/index.ts ``` -------------------------------- ### Run the project's main script with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/context/README.md This command executes the primary TypeScript file of the project. It uses the Bun runtime to start the application, leveraging Bun's performance characteristics. ```bash bun run src/index.ts ``` -------------------------------- ### Run @undb/trpc Project with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/trpc/README.md This command executes the main TypeScript file (`src/index.ts`) of the @undb/trpc project using the Bun runtime. It initiates the application's execution. ```bash bun run src/index.ts ``` -------------------------------- ### Execute TypeScript Application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/user/README.md This command runs the main application file, `src/index.ts`, directly using the Bun runtime. Bun handles both compilation and execution of TypeScript files on the fly, providing a fast development and runtime environment. ```bash bun run src/index.ts ``` -------------------------------- ### Run the real-time application with Bun Source: https://github.com/undb-io/undb/blob/develop/packages/realtime/README.md This command executes the main TypeScript application file (`src/index.ts`) using the Bun runtime. This starts the real-time service, making it operational. The application is expected to be a long-running process. ```bash bun run src/index.ts ``` -------------------------------- ### Initialize Elysia Project with Bun Source: https://github.com/undb-io/undb/blob/develop/apps/backend/README.md This command initializes a new Elysia project in the specified directory using the Bun runtime. It sets up the basic project structure and dependencies, preparing the environment for development. ```bash bun create elysia ./elysia-example ``` -------------------------------- ### Run the main application using Bun Source: https://github.com/undb-io/undb/blob/develop/packages/query-handlers/README.md This command executes the main entry point of the application, `src/index.ts`, using the Bun runtime. It initiates the application's primary process. ```bash bun run src/index.ts ``` -------------------------------- ### Run @undb/base Project Source: https://github.com/undb-io/undb/blob/develop/packages/base/README.md Command to execute the main application entry point for the @undb/base project. This uses Bun to run the TypeScript source file. ```bash bun run src/index.ts ``` -------------------------------- ### Build undb into a Binary File Source: https://github.com/undb-io/undb/blob/develop/README.md Command to package the undb application into a standalone binary executable using Bun, suitable for easy distribution and deployment. ```bash bun run build ``` -------------------------------- ### Basic Robots.txt Configuration for Full Site Access Source: https://github.com/undb-io/undb/blob/develop/apps/frontend/static/robots.txt This configuration file instructs web robots (like search engine crawlers) on which parts of a website they are allowed or disallowed to access. The 'User-agent: *' line applies the rules to all bots, and 'Disallow:' with an empty value means no paths are disallowed, effectively allowing full access to the site. ```Robots.txt # https://www.robotstxt.org/robotstxt.html User-agent: * Disallow: ``` -------------------------------- ### Run undb with Docker Source: https://github.com/undb-io/undb/blob/develop/README.md Commands to quickly run the undb service using Docker, including options for persistent data storage by mounting a volume. ```bash docker run -p 3721:3721 ghcr.io/undb-io/undb:latest ``` ```bash docker run -d \ -p 3721:3721 \ -v $(pwd)/undb:/usr/src/app/.undb \ --name undb \ ghcr.io/undb-io/undb:latest ``` -------------------------------- ### Build and Run Custom undb Docker Image Source: https://github.com/undb-io/undb/blob/develop/README.md Commands to build a custom Docker image for undb from the source code and then run it as a container, allowing for customized deployments. ```bash docker build -t undb . ``` ```bash docker run -d -p 3721:3721 undb ``` -------------------------------- ### Manage Tauri Sidecar Process and Inter-Process Communication Source: https://github.com/undb-io/undb/blob/develop/apps/desktop/index.html This JavaScript code manages the lifecycle of a Tauri sidecar process, including spawning it, capturing its output (stdout, stderr, errors, close events), and displaying messages in the UI. It also demonstrates listening for custom events from the backend and performing a page redirection after a delay. ```JavaScript function addMessage(div, message) { const p = document.createElement("p") p.innerText = message div.appendChild(p) } const backendDiv = document.getElementById("backend") const frontendDiv = document.getElementById("frontend") const { Command } = window.__TAURI__.shell const { listen } = window.__TAURI__.event const command = Command.sidecar("binaries/app", [], { NODE_ENV: "production" }) command.on("close", (data) => { addMessage(frontendDiv, `command finished with code ${data.code} and signal ${data.signal}`) }) command.on("error", (error) => addMessage(frontendDiv, `command error: \"${error}\"`)) command.stdout.on("data", (line) => addMessage(frontendDiv, `command stdout: \"${line}\"`)) command.stderr.on("data", (line) => addMessage(frontendDiv, `command stderr: \"${line}\"`)) command.spawn() listen("message", (event) => { addMessage(backendDiv, event.payload) }) setTimeout(() => { // TODO: dynamic globalThis.location.replace("http://localhost:4728") }, 5000) ``` -------------------------------- ### Styling Flexbox Containers for Layout Source: https://github.com/undb-io/undb/blob/develop/apps/desktop/index.html Applies basic flexbox properties to a container element and its direct children. This configuration enables flexible layout, making children distribute available space equally within the container. ```CSS .container { display: flex; } .container > div { flex: 1; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.