This repository is a demo for the main package @prisma-idb/idb-client-generator
. It showcases how to utilize it, allowing for fast offline, structured, and a Prisma ORM-like DX.
- Svelte: A modern JavaScript framework for building user interfaces.
- Prisma: A next-generation ORM for Node.js and TypeScript.
- IndexedDB: A low-level API for client-side storage of significant amounts of structured data.
- Vite: A fast build tool for modern web projects.
- Node.js (>= 14.x)
- npm (>= 6.x)
- Clone the repository:
git clone https://github.com/prisma-idb/pidb-kanban-example.git
cd pidb-kanban-example
- Install the dependencies:
npm install
- Generate the Prisma client:
npx prisma generate
-
Development mode:
npm run dev
-
Build for production:
npm run build
-
Preview the production build:
npm run preview
-
Run end-to-end tests:
npm run test:e2e
src/
: Contains the source code of the application.prisma/
: Contains the Prisma schema and migration files.public/
: Contains static assets.
This project is licensed under the MIT License.