Home

Awesome

DEPRECATED!

Please use https://github.com/awohletz/electron-prisma-trpc-example instead. The new repo is a sleek, minimal example of using Prisma and tRPC with updated dependences (Electron 21, Prisma 4, tRPC 10) and simplified techniques.




electron-prisma-template

Use tRPC and Prisma with Electron. Forked from secure-electron-template.

How to get started

To get started, clone the repository by clicking the Use this template button, or through the command line (git clone https://github.com/awohletz/electron-prisma-template.git).

Once cloned, create a .env file for Prisma. E.g.:

DATABASE_URL="file:./app.db"

Then run these commands to install dependencies and start the app in hot-reloading development mode:

cd electron-prisma-template
npm i
cd packages/client
npm i
npm run build
cd ../server
npm i
cd ../client
npm start
cd ../server
npm run dev

Are you using yarn? You'll want to read this issue.

When you'd like to test your app in production, or package it for distribution, please navigate to this page for more details on how to do this.

Features

All the features from secure-electron-template plus:

TODO