Giter Site home page Giter Site logo

demo-wholesale-payments-app's Introduction

Demo Wholesale Payments App

Our goal is to create re-usable sample apps that external developers can leverage as reference.

Project structure

The codebase is built with React and Tailwind css on the frontend and express on the backend.

We have also implemented testing with Jest and Cypress.

Running Locally

You have the option of running locally with mocked data or hitting the actual APIs.

Mocked data

yarn install
yarn run client-dependencies
yarn run dev

Hitting JP Morgan APIs

This will require you to provide some SSL certificates. You will need to onboard to JP Morgan to access this information. Further details are available here.

Once you have the correct files ready you can upload them to your server (DO NOT COMMIT THESE FILES TO YOUR CODEBASE). As we are using codesandbox the information for these files are stored in secret keys.

Using your SSL files

To change the code to use ssl files:

1. Navigate to [dataController.js](./server/dataController.js)

2. Uncomment these lines and change file path to your ssl file location:
// const key = fs.readFileSync(path.join(__dirname, '../unicorns/private.key'));
// const cert = fs.readFileSync(path.join(__dirname, '../unicorns/unicorn.crt'));
3. Delete these lines:
const key = process.env.KEY && process.env.KEY.replace(/\\n/g, '\n');
const cert = process.env.CERT && process.env.CERT.replace(/\\n/g, '\n');

Running

yarn install
yarn run client-dependencies
yarn run dev

Navigate to localhost:3000

Running tests

yarn run test

Deprecation warnings

These are coming from react scripts package, with open issue:

facebook/create-react-app#9431

demo-wholesale-payments-app's People

Contributors

maria-mcparland avatar torranca avatar somanyu avatar aidanboy avatar jpmsrh avatar

Watchers

James Cloos avatar

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.