storyteller:profiles-server

v1.0.0Published 5 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Stories in ReadyCode ClimateTest CoverageIssue Count

Server package build on socialize:user-profile to add the following to the user profile:

  • Real name
  • Biography
  • WIP: Avatar

This is server code only so that you can apply any client side package that you like. Check out storytellercz:profiles-react-materialize

In addition friending between users is build in via socialize:friendships

UNDER DEVELOPMENT

Available methods:

checkForProfile(username) Makes sure that the given user has a profile document created. If not it will create it. If username is null, it will look into the currently logged in user.

updateAvatar(location) Will update the avatar location in the document.

updateBiography(text) Updates the biography in the document.

updateName(namesObject) Pass in the following object

{
  given: "given name",
  family: "family name"
}

It will then update the names in the document.