Wednesday, 19 February 2020

How to store data locally?

Hi, I'm creating my first web app with Node, Express and EJS. It's a companion app for a boardgame, where the user can create games and keep track of all the kind of points in the game. The app doesn't require registration, so for now I used cookies to store data locally, because I don't have a "database". Cookies are then parsed and used to generate the page when visited with EJS.Actually the user is only able to create one game, but I'd like to create a "Game List" page where more games can be stored, and I'm really not a fan of cookies. What is the best way to do this in node? I'd need something like a json database but only dedicated to the user, so every player can see only his own matches, how do I do that? Thank you

Submitted February 19, 2020 at 09:08AM by Artemis_21

No comments:

Post a Comment