gbowne1 / RadioLogger

A Radio Logging application build with NodeJS and ExpressJS
GNU General Public License v3.0
6 stars 6 forks source link

Social Links in MongoDB/Mongoose on profile #74

Open gbowne1 opened 11 months ago

gbowne1 commented 11 months ago

Here is my idea for this:

Obviously, every logged in user is going to have their own profile. So, to store social media links for each user in MongoDB/Mongoose, we can create a schema for the user that includes fields for each social media link.

For example, we could have fields for the user's Facebook, Twitter, and Instagram links. You can use the Mongoose library to define the schema and model for the user.

Once we have defined the schema and model, we can create a new user document for each user and store their social media links in the corresponding fields. When a user logs in and views their profile page, we can retrieve their social media links from the database and display them on the page. We can also allow users to update their social media links by providing a form for them to submit the new links, which we can then update in the database. I don't know if the tags can take variables.