### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nest/README.md Use this command to download the example project and install dependencies. ```bash npx try-prisma@latest --template orm/nest --install npm --name nest ``` ```bash cd nest ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/script/README.md Use npx to download the example, install npm dependencies, and set up the project. ```bash npx try-prisma@latest --template orm/script --install npm --name script ``` ```bash cd script ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/fastify/README.md Use npx to download the example, install dependencies, and name the project. ```bash npx try-prisma@latest --template orm/fastify --install npm --name fastify ``` ```bash cd fastify ``` -------------------------------- ### Download Example and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/elysia/README.md Use npx to download the example and install dependencies. Alternatively, clone the repository and run `bun install`. ```bash npx try-prisma@latest --template orm/elysia --name elysia cd elysia bun install ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/koa/README.md Use npx to download the example and install dependencies. Navigate into the created directory. ```bash npx try-prisma@latest --template orm/koa --install npm --name koa ``` ```bash cd koa ``` -------------------------------- ### Download Example and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/authjs-nextjs/README.md Use this command to download the example project and install its dependencies. ```bash npx try-prisma@latest --template orm/authjs-nextjs cd authjs-nextjs npm install ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/hapi/README.md Use npx to download the example and install npm dependencies. ```bash npx try-prisma@latest --template orm/hapi --install npm --name hapi ``` ```bash cd hapi ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nextjs/README.md Use this command to download the example project and install npm dependencies. ```bash npx try-prisma@latest --template orm/nextjs --install npm --name nextjs ``` ```bash cd nextjs ``` -------------------------------- ### Download Example and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/hono/README.md Use npx to download the example, navigate to the directory, and install dependencies with bun. ```bash npx try-prisma@latest --template orm/hono --name hono cd hono bun install ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-subscriptions/README.md Use npx to download the example project and install npm dependencies. Navigate into the created directory to proceed. ```bash npx try-prisma@latest --template orm/graphql-subscriptions --install npm --name graphql-subscriptions cd graphql-subscriptions ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/basic-typedsql/README.md Use npx to download the example and install npm dependencies. Navigate into the project directory to proceed. ```bash npx try-prisma@latest --template generator-prisma-client/basic-typedsql --install npm --name basic-typedsql ``` ```bash cd basic-typedsql ``` -------------------------------- ### Download and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/typedsql/README.md Use npx to download the example and install npm dependencies. Navigate into the project directory after download. ```bash npx try-prisma@latest --template orm/typedsql --install npm --name typedsql ``` ```bash cd typedsql ``` -------------------------------- ### Install Example Nuxt App Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nuxt-prisma-module/README.md Download the example and install dependencies to get started. ```bash npx try-prisma@latest --template orm/nuxt-prisma-module ``` -------------------------------- ### Clone and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/koa/README.md Alternatively, clone the entire repository, navigate to the example directory, and install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/koa ``` ```bash npm install ``` -------------------------------- ### Download and Install Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nest-graphql-sdl-first/README.md Use npx to download the example project and install npm dependencies. Navigate into the created directory. ```bash npx try-prisma@latest --template orm/nest-graphql-sdl-first --install npm --name nest-graphql-sdl-first ``` ```bash cd nest-graphql-sdl-first ``` -------------------------------- ### Clone and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/testing-express/README.md Alternative method to clone the entire repository and install dependencies for the example. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/testing-express ``` ```bash npm install ``` -------------------------------- ### Download Example and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/drizzle-prisma-postgres/README.md Clone the example repository and install necessary npm packages. ```bash npx try-prisma@latest --template databases/drizzle-prisma-postgres ``` ```bash cd drizzle-prisma-postgres npm install ``` -------------------------------- ### Download and Install Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-typegraphql/README.md Use npx to download the example project and install npm dependencies. Navigate into the project directory afterwards. ```bash npx try-prisma@latest --template orm/graphql-typegraphql --install npm --name graphql-typegraphql cd graphql-typegraphql ``` -------------------------------- ### Navigate into Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/betterauth-nextjs/README.md After downloading the example, change into the project directory to continue with the setup. ```bash cd betterauth-nextjs ``` -------------------------------- ### Clone and Install Example (Alternative) Source: https://github.com/prisma/prisma-examples/blob/latest/orm/typedsql/README.md Alternatively, clone the entire repository, navigate to the example directory, and install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/typedsql ``` ```bash npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-typegraphql-crud/README.md Alternative method to get the example code by cloning the entire repository and installing dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/graphql-typegraphql-crud npm install ``` -------------------------------- ### Clone and Install Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-typegraphql/README.md Alternatively, clone the entire repository, navigate to the example directory, and install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/graphql-typegraphql npm install ``` -------------------------------- ### Clone and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/solid-start/README.md Alternative method to clone the entire repository and install dependencies for the SolidStart Prisma example. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/solid-start ``` ```bash npm install ``` -------------------------------- ### Clone and Install Example (Alternative) Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/basic-typedsql/README.md Alternatively, clone the entire repository, navigate to the example directory, and install dependencies using pnpm. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/generator-prisma-client/basic-typedsql ``` ```bash pnpm install ``` -------------------------------- ### Clone Entire Repository Source: https://github.com/prisma/prisma-examples/blob/latest/orm/betterauth-nextjs/README.md An alternative method to get the example is by cloning the entire repository. This requires navigating into the specific example directory and installing dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/betterauth-nextjs ``` ```bash npm install ``` -------------------------------- ### Download Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/express/README.md Use npx to download the example project and install dependencies. ```bash npx try-prisma@latest --template orm/express --install npm --name express ``` ```bash cd express ``` -------------------------------- ### Download and Install SvelteKit Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/sveltekit/README.md Use this command to download the SvelteKit example and install npm dependencies. ```bash npx try-prisma@latest --template orm/sveltekit --install npm --name sveltekit ``` -------------------------------- ### Clone and Install Example (Alternative) Source: https://github.com/prisma/prisma-examples/blob/latest/orm/script/README.md Alternatively, clone the entire repository and navigate to the specific example directory. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/script ``` ```bash npm install ``` -------------------------------- ### Clone and Install Example (Alternative) Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-subscriptions/README.md Alternatively, clone the entire repository and navigate to the specific example directory. Install npm dependencies afterwards. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/graphql-subscriptions npm install ``` -------------------------------- ### Download Example & Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/prisma-postgres/README.md Clone the example repository and install project dependencies using npm or yarn. ```bash npx try-prisma@latest --template databases/prisma-postgres ``` ```bash cd prisma-postgres bun install ``` -------------------------------- ### Download and Install Nuxt Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nuxt/README.md Use the try-prisma CLI to download the Nuxt example template and install npm dependencies. ```bash npx try-prisma@latest --template orm/nuxt --install npm --name nuxt cd nuxt ``` -------------------------------- ### Clone and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/fastify/README.md Alternatively, clone the repository and install dependencies manually. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/fastify ``` ```bash npm install ``` -------------------------------- ### Download Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-auth/README.md Use npx to download the example project and install npm dependencies. ```bash npx try-prisma@latest --template orm/graphql-auth --install npm --name graphql-auth ``` ```bash cd graphql-auth ``` -------------------------------- ### Clone and Install Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-auth/README.md Alternatively, clone the entire repository and install dependencies manually. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/graphql-auth ``` ```bash npm install ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-typegraphql-crud/README.md Use this command to download the example project and install npm dependencies. ```bash npx try-prisma@latest --template orm/graphql-typegraphql-crud --install npm --name graphql-typegraphql-crud ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-gqloom/README.md Use npx to download the example project and install npm dependencies. ```bash npx try-prisma@latest --template orm/graphql-gqloom --install npm --name graphql-gqloom ``` -------------------------------- ### Clone and Install Example Project (Alternative) Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nest-graphql/README.md Alternatively, clone the entire repository, navigate to the project directory, and install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/nest-graphql ``` ```bash npm install ``` -------------------------------- ### Download Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/ai-sdk-nextjs/README.md Use npx to download the example project. ```bash npx try-prisma@latest --template orm/ai-sdk-nextjs ``` -------------------------------- ### Download Example with npx try-prisma Source: https://github.com/prisma/prisma-examples/blob/latest/orm/hapi-graphql/README.md Use this command to download the example project and install npm dependencies. ```bash npx try-prisma@latest --template orm/hapi-graphql --install npm --name hapi-graphql ``` -------------------------------- ### Run the Example Application Source: https://github.com/prisma/prisma-examples/blob/latest/databases/prisma-postgres/README.md Execute the main application script to start the Prisma Postgres example. ```bash bun run dev ``` -------------------------------- ### Download Example Project Source: https://github.com/prisma/prisma-examples/blob/latest/orm/betterauth-astro/README.md Use npx to download the example project and navigate into its directory. ```bash npx try-prisma@latest --template orm/betterauth-astro cd betterauth-astro ``` -------------------------------- ### Install npm Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/cockroachdb/README.md Navigate to the downloaded example directory and install the necessary npm packages. ```sh cd cockroachdb npm install ``` -------------------------------- ### Project Setup and Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/vitest-esm-nodejs/README.md Clone the repository and install project dependencies using pnpm. This is the initial setup step for the project. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/generator-prisma-client/vitest-esm-nodejs pnpm install ``` -------------------------------- ### Clone and Install Full Repository Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nest-graphql-sdl-first/README.md Alternatively, clone the entire repository, navigate to the specific example directory, and install dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/nest-graphql-sdl-first ``` ```bash npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/cockroachdb/README.md Alternative method to obtain the example by cloning the repository and then installing dependencies. ```sh git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/databases/cockroachdb npm install ``` -------------------------------- ### Download Example with npx try-prisma Source: https://github.com/prisma/prisma-examples/blob/latest/orm/fastify-graphql-sdl-first/README.md Use this command to download the example project and automatically install npm dependencies. ```bash npx try-prisma@latest --template orm/fastify-graphql-sdl-first --install npm --name fastify-graphql-sdl-first ``` -------------------------------- ### Bootstrap Prisma Examples with try-prisma Source: https://context7.com/prisma/prisma-examples/llms.txt Quickly download and set up any Prisma example using the `try-prisma` command-line tool. This command automates the process of cloning, installing dependencies, and naming the project. ```bash # Download any example (replaces manual git clone + npm install) npx try-prisma@latest --template orm/express --install npm --name express npx try-prisma@latest --template orm/nextjs --install npm --name nextjs npx try-prisma@latest --template databases/mongodb --install npm --name mongodb npx try-prisma@latest --template databases/turso --install npm --name turso npx try-prisma@latest --template accelerate/nextjs-starter --install npm --name accelerate-next npx try-prisma@latest --template databases/drizzle-prisma-postgres --install npm --name drizzle ``` -------------------------------- ### Install npm Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/sql-server/README.md Navigate to the SQL Server example directory and install necessary npm packages. ```bash cd prisma-examples/databases/sql-server npm install ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/clerk-astro/README.md Use this command to download the example project. ```bash npx try-prisma@latest --template orm/clerk-astro ``` -------------------------------- ### Install npm Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/turso/README.md Install project dependencies after navigating into the example directory. ```bash cd prisma-examples/databases/turso npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/authjs-nextjs/README.md Alternatively, clone the entire repository and navigate to the example directory to install dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/authjs-nextjs npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/betterauth-astro/README.md Alternatively, clone the entire repository, navigate to the example directory, and install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/betterauth-astro npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/accelerate/remix-starter/README.md Clone the Prisma examples repository and install dependencies for the Remix starter project. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/accelerate/remix-starter npm install ``` -------------------------------- ### Clone Prisma Examples Repository Source: https://github.com/prisma/prisma-examples/blob/latest/accelerate/starter/README.md An alternative method to get the starter project by cloning the entire Prisma examples repository. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/typescript/starter npm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/aws-lambda-sst-esbuild/README.md Commands to clone the example repository and install project dependencies using pnpm. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/generator-prisma-client/aws-lambda-sst-esbuild pnpm install ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/accelerate/svelte-starter/README.md Clone the Prisma examples repository, navigate to the svelte-starter directory, and install project dependencies using npm. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/accelerate/svelte-starter npm install ``` -------------------------------- ### Clone Nuxt Example Repository Source: https://github.com/prisma/prisma-examples/blob/latest/orm/nuxt/README.md Alternatively, clone the entire repository and navigate to the Nuxt example directory, then install dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/nuxt npm install ``` -------------------------------- ### Install npm Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/accelerate/starter/README.md Navigate to the starter directory and install the necessary npm packages. ```bash cd starter npm install ``` -------------------------------- ### Clone Repository Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/deno-deploy/README.md Clone the repository to get the example project files. Navigate into the project directory. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/generator-prisma-client/deno-deploy ``` -------------------------------- ### Setup Commands for Prisma Client Generator Source: https://context7.com/prisma/prisma-examples/llms.txt Commands to generate the Prisma client, apply migrations, seed the database, and start the development server. ```bash # Setup commands for prisma-client generator examples pnpm prisma generate # generate client from "prisma-client" provider pnpm prisma migrate dev --name init pnpm prisma db seed pnpm dev ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/cloudflare-workers/README.md Use this command to download the Cloudflare Workers example project. ```bash npx try-prisma@latest --template orm/cloudflare-workers ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/cloudflare-workers/README.md Change into the downloaded example project directory. ```bash cd cloudflare-workers ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/grpc/README.md Change into the downloaded project directory to begin setup. ```bash cd grpc ``` -------------------------------- ### Navigate into Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-typegraphql-crud/README.md Change into the downloaded project directory to begin setup. ```bash cd graphql-typegraphql-crud ``` -------------------------------- ### Install npm Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/databases/postgresql-supabase/README.md Install the necessary npm dependencies for the PostgreSQL Supabase example. Navigate to the example directory first. ```bash cd postgresql-supabase npm install ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/betterauth-nextjs/README.md Use this command to download the example project. Navigate into the created directory afterwards. ```bash npx try-prisma@latest --template orm/betterauth-nextjs ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/orm/clerk-nextjs/README.md Use this command to download the example project. Navigate into the created directory afterwards. ```bash npx try-prisma@latest --template orm/clerk-nextjs ``` -------------------------------- ### Download SolidStart Prisma Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/solid-start/README.md Use this command to download the SolidStart example project with Prisma ORM. ```bash npx try-prisma@latest --template orm/solid-start ``` -------------------------------- ### Navigate into Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/graphql-sdl-first/README.md Change the current directory to the downloaded example project. ```bash cd graphql-sdl-first ``` -------------------------------- ### Install Dependencies in Cloned Repository Source: https://github.com/prisma/prisma-examples/blob/latest/orm/sveltekit/README.md Install npm dependencies after cloning the Prisma examples repository. ```bash cd prisma-examples/orm/sveltekit npm install ``` -------------------------------- ### Install npm Dependencies for Astro Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/astro/README.md Install necessary npm packages after cloning the repository. ```bash cd prisma-examples/orm/astro npm install ``` -------------------------------- ### Download Example with npx Source: https://github.com/prisma/prisma-examples/blob/latest/databases/turso/README.md Use npx to download the example template. Navigate into the created directory. ```bash npx try-prisma@latest --template databases/turso ``` ```bash cd turso ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/ai-sdk-nextjs/README.md Alternatively, clone the entire repository and install npm dependencies for the example. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 ``` ```bash cd prisma-examples/orm/ai-sdk-nextjs ``` ```bash npm install ``` -------------------------------- ### Run Example Script Source: https://github.com/prisma/prisma-examples/blob/latest/databases/kysely-prisma-postgres/README.md Execute the development script to create tables, insert data, query posts with authors, and update a post. ```bash npm run dev ``` -------------------------------- ### Navigate into Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/clerk-nextjs/README.md Change into the downloaded project directory to begin configuration. ```bash cd clerk-nextjs ``` -------------------------------- ### Download Astro Prisma Example Source: https://github.com/prisma/prisma-examples/blob/latest/orm/astro/README.md Use this command to download the Astro Prisma example project. ```bash npx try-prisma@latest --template orm/astro ``` -------------------------------- ### Clone Entire Repository Source: https://github.com/prisma/prisma-examples/blob/latest/databases/postgresql-supabase/README.md Clone the entire prisma-examples repository if you prefer to have all examples. Then navigate to the specific example directory and install dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/databases/postgresql-supabase npm install ``` -------------------------------- ### Clone Entire Repository and Install Dependencies Source: https://github.com/prisma/prisma-examples/blob/latest/orm/clerk-nextjs/README.md An alternative method to obtain the example code by cloning the repository and installing npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/orm/clerk-nextjs npm install ``` -------------------------------- ### Clone Prisma MongoDB Example Repository Source: https://github.com/prisma/prisma-examples/blob/latest/databases/mongodb/README.md Alternatively, clone the entire repository and navigate to the specific example directory. Install npm dependencies. ```bash git clone git@github.com:prisma/prisma-examples.git --depth=1 cd prisma-examples/databases/mongodb npm install ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/solid-start/README.md Change into the downloaded SolidStart project directory. ```bash cd solid-start ``` -------------------------------- ### Download Example with Curl Source: https://github.com/prisma/prisma-examples/blob/latest/databases/cockroachdb/README.md Use this command to download the example project. The `--strip=2` flag removes unnecessary parent directories. ```sh curl https://codeload.github.com/prisma/prisma-examples/tar.gz/latest | tar -xz --strip=2 prisma-examples-latest/databases/cockroachdb ``` -------------------------------- ### Get All Todos Source: https://github.com/prisma/prisma-examples/blob/latest/orm/elysia/README.md Example `curl` command to fetch all todos from the API. ```bash curl http://localhost:3000/todos ``` -------------------------------- ### Vitest Test Output Example Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/vitest-esm-nodejs/README.md Example output from running Vitest tests. Shows database setup, test file execution, and individual test results. ```sh Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "dev.db" at "file:./dev.db" Running Prisma DB push... Test Files 0 passed (1) Tests 0 passed (0) Start at 14:38:33 Duration 910ms Test database setup completed ✓ test/quotes.test.ts (3 tests) 63ms ✓ Quotes > should create a quote 50ms ✓ Quotes > should find quotes by kind 9ms ✓ Quotes > should count total quotes 4ms Test Files 1 passed (1) Tests 3 passed (3) ``` -------------------------------- ### Download Prisma MongoDB Example Source: https://github.com/prisma/prisma-examples/blob/latest/databases/mongodb/README.md Use npx to download the example. Navigate into the project directory afterwards. ```bash npx try-prisma@latest --template databases/mongodb cd mongodb ``` -------------------------------- ### Test API: Get All Users Source: https://github.com/prisma/prisma-examples/blob/latest/orm/cloudflare-workers/README.md Example `curl` command to retrieve all users from the database via the API. ```bash curl http://localhost:8788/users ``` -------------------------------- ### Run the Example Application Source: https://github.com/prisma/prisma-examples/blob/latest/generator-prisma-client/basic-typedsql/README.md Execute the main application script. This runs the SQL query defined in prisma/sql/conversionByVariant.sql and displays the results. ```bash pnpm dev ``` -------------------------------- ### Test API: Get Specific User Source: https://github.com/prisma/prisma-examples/blob/latest/orm/cloudflare-workers/README.md Example `curl` command to retrieve a specific user by their ID from the database via the API. ```bash curl http://localhost:8788/users/1 ``` -------------------------------- ### Download Prisma Starter Template Source: https://github.com/prisma/prisma-examples/blob/latest/orm/starter/README.md Use this command to download the starter template for Prisma ORM. ```bash npx try-prisma@latest --template orm/starter ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/prisma/prisma-examples/blob/latest/orm/ai-sdk-nextjs/README.md Change into the downloaded project directory. ```bash cd ai-sdk-nextjs ```