Skip to content

Open edX micro-frontend application for managing user profile information.

License

Notifications You must be signed in to change notification settings

openedx/frontend-app-profile

frontend-app-profile

License status-badge Continuous Integration Codecov

Purpose

This is a micro-frontend application responsible for the display and updating of user profiles.

When a user views their own profile, they're given fields to edit their full name, location, primary spoken language, education, social links, and bio. Each field also has a dropdown to select the visibility of that field - i.e., whether it can be viewed by other learners.

When a user views someone else's profile, they see all those fields that that user set as public.

Getting Started

Prerequisites

The Tutor platform is a prerequisite for developing an MFE. Utilize relevant tutor-mfe documentation to guide you through the process of MFE development within the Tutor environment.

Cloning and Startup

  1. Clone the repo:
git clone https://github.com/openedx/frontend-app-profile.git
  1. Use the version of node in the .nvmrc file.
The current version of the micro-frontend build scripts support the version of node found in .nvmrc. Using other major versions of node may work, but this is unsupported. For convenience, this repository includes an .nvmrc file to help in setting the correct node version via nvm.
  1. Install npm dependencies:
cd frontend-app-profile && npm ci
  1. Mount the frontend-app-profile MFE in Tutor:
tutor mounts add <your-tutor-project-dir>/frontend-app-profile
  1. Build the Docker image:
tutor images build profile-dev
  1. Launch the development server with Tutor:
tutor dev start profile

The dev server is running at http://localhost:1995/u/staff.

Tutor. If you start Tutor with tutor dev start profile that should give you everything you need as a companion to this frontend.

Plugins

This MFE can be customized using Frontend Plugin Framework.

The parts of this MFE that can be customized in that manner are documented here.

Configuration

This MFE is configured via node environment variables supplied at build time. See the .env file for the list of required environment variables. Example build syntax with a single environment variable:

NODE_ENV=production ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' npm run build

Getting Help

If you're having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace. Because this is a frontend repository, the best place to discuss it would be in the #wg-frontend channel.

For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide. Please tag @openedx/2u-infinity on any PRs or issues.

https://github.com/openedx/frontend-app-profile/issues

For more information about these options, see the Getting Help page.

License

The code in this repository is licensed under the AGPLv3 unless otherwise noted.

Please see LICENSE for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public. Email security@openedx.org instead.

About

Open edX micro-frontend application for managing user profile information.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 64

Languages