Advanced Node and Express

Hello FCC Community, can someone point me towards the right direction in a project that I’m working on?

I have a web app built with node js that allows a user to search and read PDF files.

What can I do to display recent PDF files that a user has read in the form a thumbnail?

I have been doing a lot of reading. It appears that my options are localStorage and cookies. However, cookies may be disabled by the user. Hence, it cannot be relied upon. Is there a better way?

I would be glad if you can help me out. Thanks

localStorage is a decent idea and fairly easy to implement - as long as you’re storing somewhere the books someone has read, you can copy that data into his local storage. Reading from it is also pretty easy.

Just remember that (taken from wikipedia)

Other than that you could always use a database, I haven’t worked with back-end yet so no idea if that’s an overkill.

1 Like

Thank you very much. I decided to stick with database. It was a lot easier.