Skip to content

DApp boilerplate integrated with web3asy

Notifications You must be signed in to change notification settings

tea999/web3asy-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custonomy DApp Boilerplate

This example dApp demonstrates how you may use a paymant gateway of your choice to work together with Custonomy's API to execute an NFT mint.

Features

✅ Custonomy Widget Integration
✅ Custonomy Mint API
✅ Mint NFT using Crypto
✅ Mint NFT using Credit Card via Stripe
✅ View NFT Collection
✅ Transfer NFT

Setup

Clone the repository and install the dependencies.

yarn install

Once installed, enter your secrets to the .env files, one for the frontend, at path packages/react-app and one for the backend, at path packages/backend.

To run the app, start both the frontend and the backend.

yarn react-app:start
yarn backend:dev

Adding Stripe

To begin, create an account at Stripe and go to the test dashboard to generate two API Keys. In our case, we have setup our listener at localhost:4242/webhook. In this example, the listener's main function will be to listen to successful purchases and record the pruchase into the DB. Follow this guide to use the Stripe CLI to forward the events to our localhost. For more information on this, please check out the official documentation by Stripe here.

./stripe listen --forward-to localhost:4242/webhook

DB Schema Migration

To setup a PostgreSQL DB. Please find the necessary DB model and Knex migration files in packages/backend/models

Please check out this guide on Knex migration.

About

DApp boilerplate integrated with web3asy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published