What would be the best Database for a Node JavaScript based Social Media? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What would be the best Database for a Node JavaScript based Social Media?

I want to create a social media however I need to find the best way to encrypt user data like passwords, and other profile related things.

27th Apr 2018, 3:48 AM
DeathlyPlays
DeathlyPlays - avatar
7 Answers
+ 8
Firebase
27th Apr 2018, 3:59 AM
Charan Leo25
Charan Leo25 - avatar
+ 8
I use Nedb in my projects. It's pretty easy to use and it uses MongoDB API. You can also use MySQL, Firebase . Finally it's upto you what you'll use. Here you'll find documentation of Nedb. Give it a try. https://github.com/louischatriot/nedb/blob/master/README.md
27th Apr 2018, 6:25 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 3
bcrypt can help in encrypting passwords. mongoDB for nodejs is a good option , mongoDB driver is self sufficient for all the works but an ORM like mongoose will definitely help to make the process even easier
27th Apr 2018, 6:38 AM
Morpheus
Morpheus - avatar
+ 1
yeah I've looked into Mongoose but idk I seem to be misreading something I think because I need to initialize the user's feedback and store it
27th Apr 2018, 6:27 AM
DeathlyPlays
DeathlyPlays - avatar
+ 1
DeathlyPlays in that case pick a good Authentication strategy with Passport, if not going with oAuth strategies( Google, Facebook etc) then jwt strategy of passport comes handy for performing authentication. with bcrypt for encryption/ decryption before saving the password in database and retrieving it. Traversy media at YouTube has a tutorial on that a 10 video mean auth app tutorial series, he doesn't explains it well, but he goes through the whole coding process with the components which helps a lot in basic understanding. https://youtu.be/wby16AandrM
27th Apr 2018, 7:14 AM
Morpheus
Morpheus - avatar
+ 1
Thanks! The oAuth idea through Google would be nice, personally I want my social media to distance away from Facebook.
27th Apr 2018, 7:15 AM
DeathlyPlays
DeathlyPlays - avatar
0
Yeah I really want passwords to be as secure as possible
27th Apr 2018, 6:53 AM
DeathlyPlays
DeathlyPlays - avatar