Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 354c3be

Browse files
schenedxSimon Chen
andauthored
feat: Add the microfrontend account to the devstack on port 1997 (#822)
Currently, the MFE frontend-app-account is not part of the optional microfrontends devstack can quickly help develop run. Add this devstack container for development Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
1 parent 664c44f commit 354c3be

5 files changed

Lines changed: 28 additions & 1 deletion

File tree

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ Instead of a service name or list, you can also run commands like ``make dev.pro
310310
+------------------------------------+-------------------------------------+----------------+--------------+
311311
| `frontend-app-course-authoring`_ | http://localhost:2001/ | MFE (React.js) | Extra |
312312
+------------------------------------+-------------------------------------+----------------+--------------+
313+
| `frontend-app-account`_ | http://localhost:1997/ | MFE (React.js) | Extra |
314+
+------------------------------------+-------------------------------------+----------------+--------------+
313315
| `xqueue`_ | http://localhost:18040/api/v1/ | Python/Django | Extra |
314316
+------------------------------------+-------------------------------------+----------------+--------------+
315317
| `coursegraph` | http://localhost:7474/browser | Tooling (Java) | Extra |
@@ -337,6 +339,7 @@ Some common service combinations include:
337339
.. _frontend-app-learning: https://github.com/edx/frontend-app-learning
338340
.. _frontend-app-library-authoring: https://github.com/edx/frontend-app-library-authoring
339341
.. _frontend-app-course-authoring: https://github.com/edx/frontend-app-course-authoring
342+
.. _frontend-app-account: https://github.com/edx/frontend-app-account
340343
.. _xqueue: https://github.com/edx/xqueue
341344
.. _coursegraph: https://github.com/edx/edx-platform/tree/master/openedx/core/djangoapps/coursegraph
342345

docker-compose-host.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ services:
5353

5454
# Note that frontends mount `src` to /edx/app/src instead of /edx/src.
5555
# See ADR #5 for rationale.
56+
frontend-app-account:
57+
volumes:
58+
- ${DEVSTACK_WORKSPACE}/frontend-app-account:/edx/app/frontend-app-account:cached
59+
- frontend_app_account_node_modules:/edx/app/frontend-app-account/node_modules
60+
- ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached
61+
5662
frontend-app-course-authoring:
5763
volumes:
5864
- ${DEVSTACK_WORKSPACE}/frontend-app-course-authoring:/edx/app/frontend-app-course-authoring:cached
@@ -96,6 +102,7 @@ volumes:
96102
edxapp_media:
97103
edxapp_node_modules:
98104
edxapp_uploads:
105+
frontend_app_account_node_modules:
99106
frontend_app_course_authoring_node_modules:
100107
frontend_app_gradebook_node_modules:
101108
frontend_app_learning_node_modules:

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,21 @@ services:
512512
# for micro-frontends in devtack.
513513
# ==========================================================================
514514

515+
frontend-app-account:
516+
extends:
517+
file: microfrontend.yml
518+
service: microfrontend
519+
working_dir: '/edx/app/frontend-app-account'
520+
container_name: "edx.${COMPOSE_PROJECT_NAME:-devstack}.frontend-app-account"
521+
networks:
522+
default:
523+
aliases:
524+
- edx.devstack.frontend-app-account
525+
ports:
526+
- "1997:1997"
527+
depends_on:
528+
- lms
529+
515530
frontend-app-course-authoring:
516531
extends:
517532
file: microfrontend.yml

options.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ credentials+discovery+ecommerce+edx_notes_api+forum+frontend-app-gradebook+front
7474
# Separated by plus signs.
7575
# Separated by plus signs. Listed in alphabetical order for clarity.
7676
EDX_SERVICES ?= \
77-
credentials+discovery+ecommerce+edx_notes_api+forum+frontend-app-course-authoring+frontend-app-gradebook+frontend-app-learning+frontend-app-library-authoring+frontend-app-payment+frontend-app-program-console+frontend-app-publisher+lms+lms_watcher+registrar+registrar-worker+studio+studio_watcher+xqueue+xqueue_consumer
77+
credentials+discovery+ecommerce+edx_notes_api+forum+frontend-app-account+frontend-app-course-authoring+frontend-app-gradebook+frontend-app-learning+frontend-app-library-authoring+frontend-app-payment+frontend-app-program-console+frontend-app-publisher+lms+lms_watcher+registrar+registrar-worker+studio+studio_watcher+xqueue+xqueue_consumer
7878

7979
# Services with database migrations.
8080
# Should be a subset of $(EDX_SERVICES).

repo.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ non_release_repos=(
4040
"https://github.com/edx/frontend-app-library-authoring.git"
4141
"https://github.com/edx/registrar.git"
4242
"https://github.com/edx/frontend-app-program-console.git"
43+
"https://github.com/edx/frontend-app-account.git"
4344
)
4445

4546
ssh_repos=(
@@ -62,6 +63,7 @@ non_release_ssh_repos=(
6263
"git@github.com:edx/frontend-app-library-authoring.git"
6364
"git@github.com:edx/registrar.git"
6465
"git@github.com:edx/frontend-app-program-console.git"
66+
"git@github.com:edx/frontend-app-account.git"
6567
)
6668

6769
private_repos=(

0 commit comments

Comments
 (0)