https://github.com/prisma/prisma-driver-adapters-nuxt
Example Nuxt 3 app using Prisma Driver Adapters and Cloudflare D1
https://github.com/prisma/prisma-driver-adapters-nuxt
Last synced: 4 months ago
JSON representation
Example Nuxt 3 app using Prisma Driver Adapters and Cloudflare D1
- Host: GitHub
- URL: https://github.com/prisma/prisma-driver-adapters-nuxt
- Owner: prisma
- Created: 2024-05-28T15:31:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-31T10:05:24.000Z (about 1 year ago)
- Last Synced: 2025-02-25T11:08:21.689Z (4 months ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prisma Driver Adapters Nuxt
This is a Nuxt 3 project that demonstrates how to use Prisma with Driver Adapters.
This project uses:
- Cloudflare Pages as the web platform
- Cloudflare D1 as a databaseLook at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the dependencies:
```bash
pnpm install
```Create a local Cloudflare D1 database:
```bash
pnpm wrangler d1 migrations apply nuxt-db --local
```## Development Server
Start the development server on `http://localhost:3000`:
```bash
pnpm run dev
```Go to `http://localhost:3000/api` to see an example Prisma query.