New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fintech-mf

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fintech-mf

fintech micro-front

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Fintech MF UI

Contains Fintech related pages like seller and buyer billing.

Owners

  • hiba@freightos.com

Technology Stack

  • ReactJS ( FrontEnd Library )
  • Redux ( Application State Container )
  • NPM ( Package Manager )

Run under a host app locally
  • Make sure to use node version 16.14

  • Go to the command line/git bash of your workspace and download the repository.

    • git clone https://<freightos_user_name>@bitbucket.org/freightos/fintech-mf.git
  • Move into the directory and run npm install, then start it by running npm run start

  • In the host APP inject the entry file in a header script either on demand(recommended) or statically,

    • <script src="http://localhost:3004/paymentMfEntry.js"/>
  • Make sure you have the same version of react, react-dom, react-router-dom and add them in webpack config file under the shared modules of the module federation plug in.

  • Follow the Module federation load component approach to extract the component from the entry file to load it

  • In order for the MF to handle the routes:

    • include the main fintech-mf routes in the host app
    • navigate to them to render the micro-front(prev step)
    • make sure to pass the baseUrl of routes to the MF so that it append them to its routes paths
Run under a host app
  • Go through the same steps of running it locally and skip point 2,3
  • Regarding the entry file path
    • production path: https://storage.googleapis.com/festatic-production/microfronts/fintech-mf/latest/fintechMfEntry.js
    • testing path: https://storage.googleapis.com/festatic/microfronts/fintech-mf/latest/fintechMfEntry.js

Deployment
  • Merging to dev pipeline will handle building and uploading the build files to the production cloud storage.
  • Merging to master pipeline will handle building and uploading the build files to the test cloud storage.
  • Make sure to pass the proper configs and add the new routes from the host app to handle the changes done in the MF.

Eslint:
  • Download “ESLint” extension and make sure to enable it.
  • You can find all eslint rules configured in ".eslintrc” file.

configs

FieldTypeRequiredDefault value and Description
httpClientConfigs.httpClientInstanceaxios objectnoif not passed by default it will use webcargo http client provider, this is to handle authorization from the host app
httpClientConfigs.baseUrlstringnobaseUrl for the API calls
httpClientInstance.isCallingGatewaybooleannotrue by default it will call the billing service directly if passed as false
routerProps.baseUrlstringnobaseUrl that is appended to the fintech MF routes so that the MF can handle them ex: '/ebookings/'
routerProps.hashTypestringnoin-case the host is using hash route pass the hashType, ex: 'noslash'

configs - Seller billing page

FieldTypeRequiredDefault value and Description
vendorIdstringdependsif you are calling the billing service directly its required

configs - Buyer billing page

FieldTypeRequiredDefault value and Description
customerIdstringdependsif you are calling the billing service directly its required
currencystringyesthe buyer currency
isWalletEnabledbooleannoif the user has wallet display the balance banner
balanceBannerConfigsobjectyescheck payment component repo
balanceIdstringdependsrequired for portal when requesting from billing service directly

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc