nickredmark / ooth

User identity/authentication/accounts management microservice for node.js
https://nmaro.github.io/ooth/
MIT License
605 stars 65 forks source link

[Backend] Prisma Integration as alternative to mongodb #73

Open agustif opened 6 years ago

agustif commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

Movement on this?

nickredmark commented 5 years ago

Someone needs to take on the challenge :)

Jan-Kuta commented 5 years ago

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 commented 5 years ago

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

EarthlingDavey commented 5 years ago

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 commented 5 years ago

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

nickredmark commented 5 years ago

and easier go provide feedback.

EarthlingDavey commented 5 years ago

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

EarthlingDavey commented 5 years ago

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