Skip to content

eduNEXT/frontend-app-validation-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frontend-app-validation-panel

License status-badge Continuous Integration Codecov

Purpose

The Validation Panel is a micro-frontend (MFE) that enables course authors to initiate validation processes for the courses they intend to publish on the platform. These processes are routed to validators for a thorough review, feedback, and determination of approval or disapproval. This MFE offers a user-friendly interface, streamlining the course validation process for both authors and validators.

This application was designed for UNESCO's Open edX instance and depends on the Platform Global Teacher Campus Plugin

Getting Started

Prerequisites

The devstack is currently recommended as a development environment for your new MFE. If you start it with make dev.up.lms that should give you everything you need as a companion to this frontend.

Note that it is also possible to use Tutor to develop an MFE. You can refer to the relevant tutor-mfe documentation to get started using it.

Ensure you have installed the Platform Global Teacher Campus Plugin as per its documentation to have access to the endpoints required by this MFE

Developing

Cloning and Startup

  1. Clone this repository to gain access to the project:
git clone [email protected]:openedx/frontend-app-validation-panel.git
  1. Make sure are using Node version 18.x, as the micro-frontend build scripts support Node 18. This repository includes an .nvmrc file to helpset the correct Node version using nvm.
  2. Install the dependencies of the Validation Panel project:
    cd frontend-app-validation-panel
npm install
  1. Update the application port to access the Validation Panel in development:
    • Update the line PORT line in your .env.development file and specify the desired (e.g. PORT=9999).
    • By default, the app runs on http://localhost:2001/validation_panel, overriding the port used by the course-authoring MFE, unless otherwise specified in .env.development:PORT and .env.development:LMS_BASE_URL.
  2. Start the development server:
npm start
  1. Next, enable the Validation Panel micro-frontend in edx-platform to make requests, adding the path to the Validation Panel app in edx-platform:
    • Go to your environment settings (e.g. edx-platform/lms/envs/private.py)
    • Add the environment variable, VALIDATION_PANEL_MICROFRONTEND_URL pointing to the Validation Panel App location considering the PORT determined in .env.development:PORT (e.g. http://localhost:2001).
  2. Restart the edx-platform lms by running the following command:
make dev.restart-container

Deployment

This component follows the standard deploy process for MFEs. For details, see the MFE production deployment guide

Now, if you prefer to use Tutor, you will need to create an image containing the new MFE. With this in mind, you have to execute the following steps:

  1. Declare the new MFE in your config.yml by executing the following command line
tutor config save --set MFE_VALIDATION_PANEL_MFE_APP="{'name': 'validation_panel', 'repository': 'https://github.com/eduNEXT/frontend-app-validation-panel.git', 'version': '< the wanted git branch or 'master' >', 'port': < any free port >}"

or by adding the following code directly in the config.yml

MFE_VALIDATION_PANEL_MFE_APP:
  name: validation_panel
  port: < any free port >
  repository: https://github.com/eduNEXT/frontend-app-validation-panel.git
  version: < the wanted git branch or 'master' >
  • If you are using Tutor in a v16.X version or up, you will need to execute the steps given in tutor-mfe documentation
  1. Apply the new settings with tutor config save
  2. Create the new image of the MFEs containing this new MFE usign tutor images build mfe
  3. Start the platform with the image recently created with tutor local launch

License

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

Please see LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published