### Clone and Install Docmost Project Source: https://docmost.com/docs/self-hosting/development Steps to clone the Docmost repository from GitHub and install its dependencies using pnpm. ```bash git clone https://github.com/docmost/docmost cd docmost pnpm install cp .env.example .env ``` -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Run Frontend Development Server Source: https://docmost.com/docs/self-hosting/development Command to start the frontend development server in watch mode using Nx. ```bash pnpm nx run client:dev ``` -------------------------------- ### Build Entire Project with pnpm Source: https://docmost.com/docs/self-hosting/development Command to build all necessary packages within the Docmost project using pnpm. ```bash pnpm build ``` -------------------------------- ### Run Backend Development Server with Nx Source: https://docmost.com/docs/self-hosting/development Commands to run the backend development server in watch mode and in a standard development configuration using Nx. ```bash # run in watch mode pnpm nx run server:start:dev # development pnpm nx run server:start ``` -------------------------------- ### Build Editor Package with Nx Source: https://docmost.com/docs/self-hosting/development Command to build the editor extension package using the Nx build command. ```bash pnpm nx run @docmost/editor-ext:build ``` -------------------------------- ### Manage Database Migrations with Nx Source: https://docmost.com/docs/self-hosting/development A set of commands to manage database migrations for the backend server using Nx. This includes running, resetting, and creating migrations, as well as regenerating database types. ```bash # To run all pending database migrations pnpm nx run server:migration:latest # To run one migration up pnpm nx run server:migration:up # To run one migration down pnpm nx run server:migration:down # To drop all migrations pnpm nx run server:migration:reset # To create new empty migration file. pnpm nx run server:migration:create migration_name_here pnpm nx run server:migration:codegen ``` -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description -------------------------------- ### Untitled No description === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.