I have been trying to setup a local Open edX environment. So far, I have followed these steps:
python3 -m venv env
source env/bin/activate
git clone https://github.com/openedx/edx-platform
git clone https://github.com/overhangio/tutor
cd tutor
git checkout main # Fixes error for RUN npm run compile-sass -- --skip-themes
pip install -e .
Set Docker Desktop to use 12GB of RAM in Settings>Resources>Advanced>Resource Allocation:Memory limit
tutor mounts add ./edx-platform
tutor plugins disable indigo # Necessary to avoid React version mismatch problem
tutor images build openedx-dev
tutor dev launch
Update /etc/hosts
file to point 127.0.0.1 to each domain in the build output.
I’m able to get to http://local.openedx.io:8000 and I was able to create an account there and log in. However, when I try to go to http://studio.local.openedx.io:8001, I am redirected to http://localhost:2001/home which doesn’t correspond to any of the docker containers I have running.
From trying to search for this issue in the forums, I found these related posts:
- How can I specify the link to my fork of frontend-component-header and frontend-component-footer?
- Trouble mounting tutor-mfe: frontend-app-authoring - #10 by Suleman_Hamdani
- How to set your custom fork repo of mfe discussion app changes on tutor - #9 by Yagnesh
- Running Course Authoring MFE with tutor - #5 by Hargun_Oberoi
I think the conclusion to this issue is that the GitHub - openedx/frontend-app-authoring: Front-end for the Open edX Studio experience, implemented in React and Paragon. repository also needs to be cloned and built to run on port 2001 in order for the Studio CMS to function. Is this the correct conclusion? If so, from reading these 2 Github READMEs, it seems like the steps I need to move forward are these:
git clone https://github.com/openedx/frontend-app-authoring.git
Ensure your Node version matches the one mentioned in the .nvmrc file of the frontend-app-authoring
repository using node --version
.
tutor dev stop
tutor mounts add ./frontend-app-authoring
tutor plugins install mfe
tutor plugins enable mfe
tutor images build mfe
tutor dev start lms cms mfe
cd frontend-app-authoring && npm ci
npm run dev
- GitHub - openedx/frontend-app-authoring: Front-end for the Open edX Studio experience, implemented in React and Paragon.
- GitHub - overhangio/tutor-mfe: This plugin makes it possible to easily add micro frontend (MFE) applications on top of an Open edX platform that runs with Tutor.
Are these the correct steps in the correct order?