Giter Club home page Giter Club logo

frontend-app-ora's Introduction

frontend-app-ora

License status-badge Continuous Integration Codecov

Purpose

This repository is a template for Open edX micro-frontend applications. It is flagged as a Template Repository, meaning it can be used as a basis for new GitHub repositories by clicking the green "Use this template" button above. The rest of this document describes how to work with your new micro-frontend after you've created a new repository from the template.

Getting Started

After copying the template repository, you'll want to do a find-and-replace to replace all instances of frontend-app-ora with the name of your new repository. Also edit index.html to replace "Application Template" with a friendly name for this application that users will see in their browser tab.

Prerequisites

The devstack is currently recommended as a development environment for your new MFE. If you start it with make dev.up.lms that should give you everything you need as a companion to this frontend.

Note that it is also possible to use Tutor to develop an MFE. You can refer to the relevant tutor-mfe documentation to get started using it.

Cloning and Startup

  1. Clone your new repo:
git clone https://github.com/openedx/frontend-app-ora.git
  1. 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.

  2. Install npm dependencies:

cd frontend-app-ora && npm install
  1. Update the application port to use for local development:

    Default port is 1992. If this does not work for you, update the line PORT=1992 to your port in all .env.* files

  2. Start the dev server:

npm start

The dev server is running at http://localhost:1992 or whatever port you setup.

Developing

This section concerns development of frontend-app-ora itself, not the templated copy.

It should be noted that one of the goals of this repository is for it to function correctly as an MFE (as in npm install && npm start) even if no modifications are made. This ensures that developers get a practical working example, not just a theoretical one.

This also means, of course, that any committed code should be tested and subject to both CI and branch protection rules.

Build Process Notes

Production Build

The production build is created with npm run build.

Getting Help

If you're having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace. Because this is a frontend repository, the best place to discuss it would be in the #wg-frontend channel.

For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide.

https://github.com/edx/frontend-app-ora/issues

For more information about these options, see the Getting Help page.

License

The code in this repository is licensed under the AGPLv3 unless otherwise noted.

Please see LICENSE for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public, and email [email protected] instead.

frontend-app-ora's People

Contributors

muselesscreator avatar renovate[bot] avatar leangseu-edx avatar syed-ali-abbas-zaidi avatar jansenk avatar mattcarter avatar jszewczulak avatar arbrandes avatar feanil avatar bilalqamar95 avatar pkulkoraccoongang avatar rodra avatar

Stargazers

Ezzalddeen Ali avatar Mauro Risonho de Paula Assumpção avatar

Watchers

 avatar  avatar Max Sokolski avatar  avatar  avatar  avatar

frontend-app-ora's Issues

Upgrade React JS to v17

This repo is currently using React JS v16. We need to upgrade it to React 17 before moving to latest React version(v18).
React 17 doesn’t add any new developer-facing features, so its upgrade might not cause any breaking changes. Our end goal is to upgrade React to v18 but v18 no longer support enzyme, so we are upgrading to React 17 and then we’ll migrate from enzyme.

Epic Link

React 17 upgrade

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm redux-devtools-extension Available

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @openedx/frontend-build to v14.0.14
  • fix(deps): update dependency @edx/frontend-lib-special-exams to v3.1.3
  • fix(deps): update dependency @zip.js/zip.js to v2.7.47
  • chore(deps): update dependency ts-jest to v29.2.3
  • fix(deps): update dependency @edx/frontend-platform to v8.1.1
  • fix(deps): update react-router monorepo to v6.25.1 (react-router, react-router-dom)
  • chore(deps): update dependency glob to v11
  • chore(deps): update testing-library monorepo (major) (@testing-library/dom, @testing-library/jest-dom, @testing-library/react)
  • fix(deps): update dependency pdfjs-dist to v4
  • fix(deps): update dependency query-string to v9
  • fix(deps): update dependency react-pdf to v9
  • fix(deps): update dependency react-redux to v9
  • fix(deps): update dependency redux to v5
  • fix(deps): update dependency tinymce to v7
  • fix(deps): update dependency uuid to v10
  • fix(deps): update font awesome to v6 (major) (@fortawesome/fontawesome-svg-core, @fortawesome/free-brands-svg-icons, @fortawesome/free-regular-svg-icons, @fortawesome/free-solid-svg-icons)
  • fix(deps): update react monorepo to v18 (major) (react, react-dom)
  • fix(deps): update tanstack-query monorepo to v5 (major) (@tanstack/react-query, @tanstack/react-query-devtools)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/add-depr-ticket-to-depr-board.yml
.github/workflows/add-remove-label-on-comment.yml
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • codecov/codecov-action v4
.github/workflows/commitlint.yml
.github/workflows/lockfileversion-check.yml
.github/workflows/self-assign-issue.yml
.github/workflows/update-browserslist-db.yml
npm
package.json
  • @edx/brand 2.1.3
  • @edx/frontend-lib-special-exams ^3.1.0
  • @edx/frontend-platform 8.1.0
  • @edx/openedx-atlas ^0.6.0
  • @edx/react-unit-test-utils ^3.0.0
  • @edx/tinymce-language-selector 1.1.0
  • @fortawesome/fontawesome-svg-core 1.2.36
  • @fortawesome/free-brands-svg-icons 5.15.4
  • @fortawesome/free-regular-svg-icons 5.15.4
  • @fortawesome/free-solid-svg-icons 5.15.4
  • @fortawesome/react-fontawesome 0.2.2
  • @openedx/paragon ^21.13.1
  • @reduxjs/toolkit ^1.9.7
  • @tanstack/react-query ^4.29.25
  • @tanstack/react-query-devtools ^4.35.3
  • @tinymce/tinymce-react 3.14.0
  • @zip.js/zip.js ^2.7.30
  • axios ^1.5.1
  • classnames ^2.3.2
  • core-js 3.37.1
  • file-saver ^2.0.5
  • filesize ^8.0.6
  • jest-when ^3.6.0
  • moment ^2.29.4
  • pdfjs-dist ^3.11.174
  • prop-types 15.8.1
  • query-string ^8.1.0
  • react ^17.0.2
  • react-dom ^17.0.2
  • react-pdf ^7.4.0
  • react-redux 7.2.9
  • react-router 6.25.1
  • react-router-dom 6.25.1
  • redux 4.2.1
  • redux-devtools-extension ^2.13.9
  • redux-logger ^3.0.6
  • regenerator-runtime 0.14.1
  • tinymce 5.10.9
  • uuid ^9.0.1
  • @edx/browserslist-config ^1.1.1
  • @openedx/frontend-build 14.0.10
  • @edx/reactifex ^2.1.1
  • @testing-library/dom ^10.0.0
  • @testing-library/jest-dom 6.4.6
  • @testing-library/react 16.0.0
  • @testing-library/user-event ^14.5.1
  • glob 7.2.3
  • husky 7.0.4
  • jest ^29.7.0
  • ts-jest ^29.1.4
  • @openedx/paragon 21.13.1
  • @openedx/paragon 21.13.1
nvm
.nvmrc
  • node 18

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.