[Do Not Merge] build: demonstrate using localhost.stage.edx.org #763
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PoC Demo of MFE Development w/o Devstack 🤘
Purpose
To increase the FE development iteration speed. To reduce the cognitive load required to make changes so developers can focus on delivering customer value.
MFE development relies by default on devstack-based services. To run any individual devstack service a developer has to run almost every devstack service - this requires a lot of effort and cognitive load to configure and maintain. Frontend engineers would benefit from an option to run no/fewer devstack services.
A positive side-effect is the data in stage will become better maintained through the normal course of developer-effort.
HowTo
sudo nano /etc/hosts
127.0.0.1 localhost.stage.edx.org
Stage Resources
Additional Supporting Context
We've made some additional config tweaks on stage to support this. Some are temporary until we figure out a cleaner path.
localhost.stage.edx.org
CORS_ORIGIN_ALLOW_ALL: true
for now on courses.stage.edx.org until a better strategy is figured out.CSRF_TRUSTED_ORIGINS
needs.edx.org:{PORT}
Future Improvements & Questioins