LoginRadius / cascade

Create your internal developers' portal
MIT License
2 stars 13 forks source link

Update the data adapters by adding MongoDB as a database to perform CRUD operations #5

Open mohammed786 opened 3 years ago

mohammed786 commented 3 years ago

Currently, all the data is fetched from the constant static files located locally, need to create a data adapter in MongoDB that can read and write data from the database.

You can use the same schema which we are using in the src/constants/.

Feel free to ask any questions.

DarthBenro008 commented 3 years ago

Hey, this issue seems interesting, can we use an ORM like mongoose instead of writing a custom generic adapter? I feel it would make it easier to perform CRUD operations anywhere throughout the project.

puneetsingh24 commented 3 years ago

@DarthBenro008 Yes you can use mongoose

One more thing, If you Contribute to LoginRadius Open Source. As part of hacktoberfest, LoginRadius is also giving free swags and goodies to its contributors. Please check out our Hacktoberfest Page and fill the form mentioned there to become eligible for free swags. :)

DarthBenro008 commented 3 years ago

Awesome ! I would love to work on this issue!

mohammed786 commented 3 years ago

@DarthBenro008 Assigned the issue to you.

DarthBenro008 commented 3 years ago

@puneetsingh24 @mohammed786 I realised that there is no express or node setup for the mongo adapter to be used/moongose, should i create a folder named server where the models and the server code go?

mohammed786 commented 3 years ago

Yeah go ahead, @DarthBenro008 .