Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

[Backend] Prisma Integration as alternative to mongodb #73

Open
agustif opened this issue Oct 22, 2018 · 10 comments
Open

[Backend] Prisma Integration as alternative to mongodb #73

agustif opened this issue Oct 22, 2018 · 10 comments

Comments

@agustif
Copy link

agustif commented Oct 22, 2018

Would love to make a prisma-backend integrator to be able to use ooth/staart for my own project.

I saw #47 about Postgres.

It should be pretty easy with the use of prisma-bindings forwardTo('db');

It also should be easy to integrate on backend development examples, as both use docker to build the backend.

It also could be integrable using the generated mongodb to start from, but it should be easy to integrate with an existing project, without regards of the db.

I think being flexible about this, and not tidying up ooth to mongo could be helpful to make it more useful to a broader audience.

I also think we could leverage GraphQL-Shield for role-based/permissions/authorization

@nickredmark
Copy link
Owner

Sounds very cool. We used prisma for a moment at my company before we created our own graphql-to-mysql mapper. And I agree that it shouldn't be that hard.

Would you be up for a try? It would also be good for me to see what the difficulties are for contributing code.
To make things easier for you we could try this approach: copy the standalone example to a new prisma folder, adapt the backend as a folder in the example (instead of importing ooth-mongo and push as a pr. I can then make a package out of the prisma integration, which you then can integrate as a pacakge.

For easier communication join the slack channel.

@relativityboy
Copy link

Movement on this?

@nickredmark
Copy link
Owner

Someone needs to take on the challenge :)

@Jan-Kuta
Copy link

Hello, I am working on proof of concept at the moment. I use express server with Prisma as Backend and react as frontend. I use passport for social login. Feel free to look at it and ask if you have some question. Hope I can help you with some difficulties.
https://github.com/Jan-Kuta/cuteCV
Honza

@relativityboy
Copy link

@Jan-Kuta - I don't see any ooth dependencies at all as yet, so I'm not sure how your POC is related.

@EarthlingDavey
Copy link

Hey folks, I've been working on this recently,I've put quite a few hours into it. Is anyone up for taking my almost there WIP and running with it? I just don't have the time to finish it right now.

https://github.com/daveybrown/ooth/tree/prisma-integration

@nickredmark
Copy link
Owner

Hey @DaveyBrown could you open a pr? would be great to be able to look at the diff directly.

@nickredmark
Copy link
Owner

and easier go provide feedback.

@EarthlingDavey
Copy link

Sure, I just created it with an explanation of where it's up to. Any feedback is welcome, cheers.

@EarthlingDavey
Copy link

The branch is here... Prisma integration branch, and I've added a todo list as suggested.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants