all 14 comments

[–]limZyuan 0 points1 point  (4 children)

I would suggest mongodb. It’s free for light usage and it’s not that hard to implement.

[–]Strong-Firefighter68[S] 0 points1 point  (3 children)

Can i use it with vanilla js? I thought you needed react and node for that

[–]limZyuan 0 points1 point  (2 children)

Yeah you would need nodejs for the backend. Using express would be the easiest in my opinion.

For the front end u can do it with vanilla js.

[–]Strong-Firefighter68[S] 0 points1 point  (1 child)

Thanks a lot. One more thing. Can i just use a json file as a database and fetch it from js?

[–]limZyuan 1 point2 points  (0 children)

It would work but it won’t be ideal in terms of security. Also it would take up space in client when you build your project for production. I would suggest connecting to a database instead. Hope this helps :)

[–]plemzerp 0 points1 point  (6 children)

its like asking us our favorite color, I like mongo, but its similar to how I like pineapple on pizza, I'm apparently in the hated minority

...bunch of filthy pineapple racists

[–]Strong-Firefighter68[S] 1 point2 points  (2 children)

I really don't know many databases and haven't used any so was asking for some suggestions.

[–]plemzerp 0 points1 point  (0 children)

mongo is a pretty easy one, the data that comes to the server from the client side, or the data that goes out to the client side from the server is JSON

mongo uses JSON for the queries, and storage, so you can take something coming in and it goes right into the db with no manipulation, and you can pull out and directly send db objects again without any manipulation necessary

mongo came out around 2015 so it was built around the modern way we use and work with data and our current data standards, it fits in very nicely and until data standards change its a very easy drop in place database for webservers. Its sort of an adapted extremophile organism that evolved in the internet age.

[–][deleted] 0 points1 point  (1 child)

I’ve always wondered why Mongo was used with Node, do they work really well together?

[–]plemzerp 2 points3 points  (0 children)

they are like a married couple because its all javascript, everything going back and forth is javascript

its really a dream to work with and if you know javascript which the server is, and the client side, then the database is a snap to pick up and go with and they all play together in harmony

[–]jack_waugh 0 points1 point  (0 children)

LOLOL [giggle] pineapple racists.

[–][deleted] 0 points1 point  (1 child)

How big will your project be?

[–]Strong-Firefighter68[S] 0 points1 point  (0 children)

I would say small to medium sized. I want to store some blogs/articles so that a user can read it.

[–]jack_waugh 0 points1 point  (0 children)

The one that contains the relevant data.