Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social Links in MongoDB/Mongoose on profile #74

Open
gbowne1 opened this issue Jul 18, 2023 · 0 comments
Open

Social Links in MongoDB/Mongoose on profile #74

gbowne1 opened this issue Jul 18, 2023 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested test Issues related to tests
Milestone

Comments

@gbowne1
Copy link
Owner

gbowne1 commented Jul 18, 2023

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.

@gbowne1 gbowne1 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested test Issues related to tests labels Jul 18, 2023
@gbowne1 gbowne1 added this to the Backend milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested test Issues related to tests
Projects
Development

No branches or pull requests

1 participant