Skip to content

fylein/fyle-integrations-app

Repository files navigation

Fyle Integrations Settings App

Frontend Repository for Fyle Integrations Settings Dashboard App

Pre-requisite repo

required for running Integration setting app Integration Settings API

required based on the your needs qbd-api while working in QBD

Storybook

Please refer this link to find the storybook of the project.

Local development setup

Setup - 1 (Recommended)

Follow instructions mentioned in Integrations Central

Setup - 2

  • Run the integrations-settings-api service following instructions from Integrations Central

  • Install dependencies

    npm install
  • Copy environment.json from integrations-central/ and add it to src/environments

    cp ../fyle-integrations-central/app-secrets/integrations-app/environment.json src/environments/environment.json
    cp ../fyle-integrations-central/app-secrets/integrations-app/config.json src/app/branding/config.json
  • Copy fyle-environment.json from integrations-central/ and add it to src/environments

    cp ../fyle-integrations-central/app-secrets/integrations-app/fyle-environment.json src/environments/fyle-environment.json
    cp ../fyle-integrations-central/app-secrets/integrations-app/fyle-config.json src/app/branding/fyle-config.json
  • Copy c1-environment.json from integrations-central/ and add it to src/environments

    cp ../fyle-integrations-central/app-secrets/integrations-app/c1-environment.json src/environments/c1-environment.json
    cp ../fyle-integrations-central/app-secrets/integrations-app/c1-config.json src/app/branding/c1-config.json
  • Run app

    npm start
  • Run app in Fyle theme

    npm run start:fyle

    or

    ng serve --configuration=fyle
  • Run app in Capital One theme

    npm run start:c1

    or

    ng serve --configuration=c1
  • Run unit test

    npm test
  • Checkout code coverage

    1. Naviage to coverage/index.html
    2. Right click and select Reveal in Finder
    3. Open the file in chrome/other browser
  • Login to app

    http://localhost:4200/auth/redirect