My application and website dashboard are running s...
# orm-help
d
My application and website dashboard are running separately, both sharing same database so how can I use Prisma for managing both?
1
n
Hi @darksider 👋 Welcome to our community! prisma rainbow Do you mean you want to share the types between your application and website dashboard? What framework is your application and website dashboard using to interact with the database? Is it express. nextjs, nestjs etc?
j
I'm using monorepo to manage it
So I can share prisma type to frontend
d
Yeah, I want to share types between my application and website dashboard. website dashboard is using nextjs while application using express
j
So you can use https://nx.dev/ to create frontend and backend in to same repo
If it's not clear for you I can create minimal version how does i work
d
I will be grateful if you create a minimal version example
j
Sure give me a moment to setup
👍 1
@darksider I hope it help you get more understandable
As you see you can share Account model type from /lib/db
d
Thanks, this will get the work done for me
n
Thank you @Jarupong 🙌 for creating an example repository! We really appreciate you taking time to help the community 💯
💯 3
n
@Jarupong this is awesome indeed! Would you mind if I shared your example repo on Twitter? 😄 (I didn’t find an account from you there but feel free to let me know if you have one so I can credit you directly via an @ mention!)
j
🙌 1
Actually you liked my tweet a couple weeks ago @nikolasburk 😄 😄 😄
💚 2
😄 1