This project is a sample implementation demonstrating the integration of RxDB, a real-time, offline-first database, with GraphQL and Prisma. It provides a practical example of how these technologies can build robust, scalable applications.
Run the following command:
git clone https://github.com/ccfiel/rxdb-graphql-prisma-sample.git
cd rxdb-graphql-prisma-sample
pnpm install
cd apps/graphql
pnpm generate
pnpm createdb
pnpm seed
cd ../..
pnpm dev
Server http://localhost:3001
Client http://localhost:5174
This Turborepo includes the following packages/apps:
docs: appweb: rxdb svelte client appgraphql: rxdb graphql server appui: a stub Svelte component library shared by bothwebanddocsapplicationseslint-config-custom:eslintconfigurations (includeseslint-plugin-svelteandeslint-config-prettier)
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
prisma: Next-generation Node.js and TypeScript ORM prismagraphql-yoga: The fully-featured GraphQL Server with focus on easy setup, performance and great developer experience. graphql-yogapothos: The most type-safe way to build GraphQL schemas in typescript pothossqlite: SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. sqliteprisma: Next-generation Node.js and TypeScript ORM prismasveltekit: a svelte-kit appturborepo: is an incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust. turborepo