Giter Site home page Giter Site logo

kdmccormick / frontend-app-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openedx/frontend-app-learning

0.0 1.0 0.0 9.63 MB

Front-end for the Open edX course experience, implemented using React and Paragon.

License: GNU Affero General Public License v3.0

Shell 0.16% JavaScript 97.76% CSS 0.01% Makefile 0.17% HTML 0.05% SCSS 1.85%

frontend-app-learning's Introduction

codecov license

frontend-app-learning

Introduction

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.

Development

Start Devstack

To use this application, devstack must be running and you must be logged into it.

Local module development

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/edx/frontend-build#local-module-configuration-for-webpack for more details.

Deployment

The Learning MFE is similar to all the other Open edX MFEs. Read the Open edX Developer Guide's section on MFE applications.

Environment Variables

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:

CREDIT_HELP_LINK_URL

A link to resources to help explain what course credit is and how to earn it.

ENABLE_JUMPNAV

Enables the new Jump Navigation feature in the course breadcrumbs, defaulted to the string 'true'. Disable to have simple hyperlinks for breadcrumbs. Setting it to any other value but 'true' ('false','I love flags', 'etc' would disable the Jumpnav). This feature flag is slated to be removed as jumpnav becomes default. Follow the progress of this ticket here: https://openedx.atlassian.net/browse/TNL-8678

SOCIAL_UTM_MILESTONE_CAMPAIGN

This value is passed as the utm_campaign parameter for social-share links when celebrating learning milestones in the course. Optional.

Example: milestone

SUPPORT_URL_CALCULATOR_MATH

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.

Example: https://support.edx.org/hc/en-us/articles/360000038428-Entering-math-expressions-in-assignments-or-the-calculator

SUPPORT_URL_ID_VERIFICATION

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

SUPPORT_URL_VERIFIED_CERTIFICATE

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

TWITTER_HASHTAG

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

TWITTER_URL

A link to your Twitter account. The Twitter social-share link won't appear unless this is set. Optional.

Example: https://twitter.com/edXOnline

frontend-app-learning's People

Contributors

renovate-bot avatar davidjoy avatar mikix avatar renovate[bot] avatar stvstnfrd avatar matthewpiatetsky avatar cdeery avatar dillon-dumesnil avatar julianajlk avatar kdmccormick avatar agrendalath avatar tj-tracy avatar bseverino avatar xnick421 avatar zacharis278 avatar emma-green avatar muselesscreator avatar dianekaplan avatar alangsto avatar connorhaugh avatar edx-semantic-release avatar schenedx avatar bmedx avatar pshiu avatar saadyousafarbi avatar daphneli-chen avatar dependabot[bot] avatar inventhouse avatar edx-requirements-bot avatar ihor-romaniuk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.