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
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
- Clone this repository to gain access to the project:
git clone git@github.com:openedx/frontend-app-validation-panel.git
- 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.
- Install the dependencies of the Validation Panel project:
cd frontend-app-validation-panel npm install
- 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
.
- Update the line PORT line in your
- Start the development server:
npm start
- 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
).
- Restart the
edx-platform
lms
by running the following command:
make dev.restart-container
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:
- 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
- Apply the new settings with
tutor config save
- Create the new image of the MFEs containing this new MFE usign
tutor images build mfe
- Start the platform with the image recently created with
tutor local launch
The code in this repository is licensed under the AGPLv3 unless otherwise noted.
Please see LICENSE for details.