Skip to content

Electron integration best practice #7889

Answered by sdnts
kirkcola asked this question in Q&A
Jun 27, 2021 · 5 comments · 14 replies
Discussion options

You must be logged in to vote

Hey @kirkcola! I don't have a list of best practices for Prisma+Electron, but I can help you get set up if you can tell me what you're trying to do! Studio's electron app ships Prisma, so this is definitely possible.

The most relevant thing I could find was this discussion a while ago: #5200

Might I ask why you're trying to do (a)? You'll definitely need to run Prisma on the main process and then use Electron's IPC APIs to pass your data to your renderer process, since Prisma currently only runs on Node (this might not be 100% straight-forward because some Prisma types are not serializable, but I can help you figure this out). If your intention is to reuse types on your frontend, then you…

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@kirkcola
Comment options

Comment options

You must be logged in to vote
2 replies
@kirkcola
Comment options

@Sepehr0011
Comment options

Answer selected by ryands17
Comment options

You must be logged in to vote
6 replies
@rafaberaldo
Comment options

@malatin3
Comment options

@rafaberaldo
Comment options

@malatin3
Comment options

@rafaberaldo
Comment options

Comment options

You must be logged in to vote
1 reply
@malatin3
Comment options

Comment options

You must be logged in to vote
4 replies
@oenu
Comment options

@Aaqu
Comment options

@lemonpole
Comment options

@Venipa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet