a2chang / parafin-elements-flex-quickstart

Andre's fork of parafin-elements-flex-quickstart - Getting started guide for Parafin Elements with flex loans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parafin Elements Quickstart

Parafin Elements is a React component library that allows you to embed Parafin's capital experience directly within your app. Get up and running in minutes with this quickstart guide.

Elements preview

Prerequisites

Instructions

1. Clone repo

First, clone the quickstart repository and install dependencies:

$ git clone https://github.com/buildparafin/parafin-elements-flex-quickstart.git
$ cd parafin-elements-flex-quickstart
$ npm install

2. Fetch and include API keys

Next, Navigate to the Settings > API keys in your Parafin dashboard and fetch your sandbox Client ID and Client secret.

Rename the sample.env file to .env and populate with your Client ID and Client secret.

$ mv sample.env .env
# .env
PARAFIN_CLIENT_ID="<your-client-id>"
PARAFIN_CLIENT_SECRET="<your-client-secret>"

3. Create a pre-approved offer

There are a few requirements before you can display a pre-approved offer with Parafin Elements:

See our documentation for more detailed information on how to create a pre-approved offer.

4. Run the app

You're now ready to run the app and check out your embedded offer!

In the project directory, run:

$ npm run dev

Open http://localhost:3000 to view it in your browser.

About

Andre's fork of parafin-elements-flex-quickstart - Getting started guide for Parafin Elements with flex loans


Languages

Language:JavaScript 84.7%Language:HTML 11.1%Language:CSS 4.3%