1.0.0 • Published 2 years ago

b2b-frontend v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

B2bFrontend

B2b micro-frontend application for dashboard, browsing and checkout

Project structure

Project consists of next applications:

  • checkout
  • dashboard
  • partner

The root container is:

  • shell

How to start

  1. Install dependencies
    • In Swisscom network (or VDI):
      • npm config set registry https://artifactory.swisscom.com/artifactory/api/npm/oce-ref-npm-virtual/
      • npm login
    • Outside Swisscom network:

      • npm config set @swisscom:registry=https://bin.swisscom.com/artifactory/api/npm/oce-shared-npm-virtual/
      • npm login --registry https://bin.swisscom.com/artifactory/api/npm/oce-shared-npm-virtual/
    Then, run npm install
  1. Run the mfe application:
    • npm run local:mfe
  1. Open in your browser the page :

    You will be redirected to login page. Use bob as the username and the password.

How to run tests

  1. Running unit tests

    To run all unit test from ac command line, perform npm run test command.

    If you want to run tests from the Itellij IDEA you need to install Karma plugin.

  2. Running E2E test

    Checkout the cta-e2e git repository cta-e2e git and follow the instructions in README