Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Latest commit

 

History

History
 
 

nextjs-fusd-provider

Next.js FUSD Provider Example

This example application demonstrates how to use the Flow Wallet API to distribute the FUSD stablecoin.

FUSD Provider Example

Usage

Start the API

This example uses the sample emulator configuration from the root of this repository.

Create a configuration file:

cp .env.example .env

Start the Wallet API, Flow Emulator and Postgres:

docker-compose up -d

Deploy the FUSD contract to the emulator:

flow project deploy -n emulator

Start the app

In this directory, install and run the Next.js app:

npm install

npm run dev

Try the application at http://localhost:3001!