Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: updated README file to reflect template changes #898

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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