| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the Learning MFE (micro-frontend application), which renders all learner-facing course pages (like the course outline, the progress page, actual course content, etc).
Please tag @edx/engage-squad on any PRs or issues. Thanks.
To use this application, devstack must be running and you must be logged into it.
To develop locally on modules that are installed into this app, you'll need to create a module.config.js file (which is git-ignored) that defines where to find your local modules, for instance:
module.exports = {
/*
Modules you want to use from local source code. Adding a module here means that when this app
runs its build, it'll resolve the source from peer directories of this app.
moduleName: the name you use to import code from the module.
dir: The relative path to the module's source code.
dist: The sub-directory of the source code where it puts its build artifact. Often "dist", though you
may want to use "src" if the module installs React as a peer/dev dependency.
*/
localModules: [
{ moduleName: '@edx/paragon/scss', dir: '../paragon', dist: 'scss' },
{ moduleName: '@edx/paragon', dir: '../paragon', dist: 'dist' },
{ moduleName: '@edx/frontend-enterprise', dir: '../frontend-enterprise', dist: 'src' },
{ moduleName: '@edx/frontend-platform', dir: '../frontend-platform', dist: 'dist' },
],
};
See https://github.com/openedx/frontend-build#local-module-configuration-for-webpack for more details.
The Learning MFE is similar to all the other Open edX MFEs. Read the Open edX Developer Guide's section on MFE applications.
This MFE is configured via environment variables supplied at build time. All micro-frontends have a shared set of required environment variables, as documented in the Open edX Developer Guide under Required Environment Variables.
The learning micro-frontend also supports the following additional variables:
This value is passed as the utm_campaign parameter for social-share links when celebrating learning milestones in the course. Optional.
Example: milestone
A link that explains how to use the in-course calculator. You can use the one in the example below, if you don't want to have your own branded version.
A link that explains how to verify your ID. Shown in contexts where you need to verify yourself to earn a certificate. The example link below is probably too edx.org-specific to use for your own site.
Example: https://support.edx.org/hc/en-us/articles/206503858-How-do-I-verify-my-identity
A link that explains what a verified certificate is. You can use the one in the example below, if you don't want to have your own branded version. Optional.
Example: https://support.edx.org/hc/en-us/articles/206502008-What-is-a-verified-certificate
This value is used in the Twitter social-share link when celebrating learning milestones in the course. Will prefill the suggested post with this hashtag. Optional.
Example: brandedhashtag
A link to your Twitter account. The Twitter social-share link won't appear unless this is set. Optional.
Example: https://twitter.com/edXOnline
| Back | FazBrowse Home | New Git URL |