Skip to content

Social Links in MongoDB/Mongoose on profile #74

@gbowne1

Description

@gbowne1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requestedtestIssues related to tests

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions