Reputation: 317
I want to make messages sent on my small messaging app persistent. Messages are parsed from the front-end to a Node, Socket io and Express back-end.
A friend advised me to use Enmaps (https://enmap.evie.dev), but as I am using Heroku for hosting this could never work. I was then advised to use Repl.it's database features, but I didn't like their service and it made it hard for me to test locally.
I was told not to use localStorage to store messages because it is "bad practice" (?)
What other methods could I use to store messages and why is using localStorage in this way bad practice?
Upvotes: 0
Views: 203
Reputation: 414
MongoDB has a pretty easy database with some capacity for free that you can use in your NodeJs server for testing purposes (and for actual applications).
Upvotes: 1