Skip to content

Commit

Permalink
Merge branch 'aperture/PluginPOCFeature' into mfrank/remove-scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFrank13 authored Nov 22, 2023
2 parents 0340b94 + b665d38 commit bb093fd
Show file tree
Hide file tree
Showing 8 changed files with 337 additions and 313 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
transifex_input = $(i18n)/transifex_input.json
# This directory must match .babelrc .
transifex_temp = ./temp/babel-plugin-react-intl
transifex_temp = ./temp/babel-plugin-formatjs

NPM_TESTS=build i18n_extract lint test

Expand Down
36 changes: 28 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#####################
frontend-app-profile
##########################
#####################

|license-badge| |status-badge| |ci-badge| |codecov-badge|

Expand All @@ -17,20 +18,22 @@ frontend-app-profile
:target: https://codecov.io/github/openedx/frontend-app-profile?branch=main
:alt: Codecov

********
Purpose
=======
********

This is a micro-frontend application responsible for the display and updating of user profiles.

When a user views their own profile, they're given fields to edit their full name, location, primary spoken language, education, social links, and bio. Each field also has a dropdown to select the visibility of that field - i.e., whether it can be viewed by other learners.

When a user views someone else's profile, they see all those fields that that user set as public.

***************
Getting Started
===============
***************

Devstack Installation
---------------------
Installation
============

Follow these steps to provision, run, and enable an instance of the
Profile MFE for local development via the `devstack`_.
Expand All @@ -46,13 +49,30 @@ Profile MFE for local development via the `devstack`_.

.. code-block::
npm install
npm start # The server will run on port 1995
1. Clone your new repo:
``git clone https://github.com/openedx/frontend-app-profile.git``
2. Use node v18.x.
The current version of the micro-frontend build scripts support node 18.
Using other major versions of node *may* work, but this is unsupported. For
convenience, this repository includes an .nvmrc file to help in setting the
correct node version via `nvm <https://github.com/nvm-sh/nvm>`_.
3. Install npm dependencies:
``cd frontend-app-profile && npm ci``
4. Start the dev server:
``npm start``
The server will run on port 1995
Once the dev server is up, visit http://localhost:1995/u/staff.

Configuration
-------------
=============

This MFE is configured via node environment variables supplied at build time. See the .env file for the list of required environment variables. Example build syntax with a single environment variable:

Expand Down
Loading

0 comments on commit bb093fd

Please sign in to comment.