Saturday 20 October 2018

New data in mongodb: update directly or with one admin user account?

I'm building a simple Express app that stores content in a MongoDB database and displays it to anyone - no user account required to view.I want the creation of new content (new documents in the database) to be something only I can do. What would the advantages and disadvantages be of doing that either:A. by setting up user authentication for a single admin account and then pages with forms to post data to the DB that only I could accessB. accessing the database directly from my server somehow and adding or removing content that wayEdit: or is there some other way to do this?

Submitted October 20, 2018 at 04:05PM by veryfloppydisk

No comments:

Post a Comment