Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blocknative/react-demo

React integration for Blocknative's Web3-Onboard library
https://github.com/blocknative/react-demo

blocknative dapp dapps-development ethereum ethereum-blockchain ethereum-token javascript react reactjs web3 web3-dapp

Last synced: 6 days ago
JSON representation

React integration for Blocknative's Web3-Onboard library

Awesome Lists containing this project

README

        

# React Demo

A repository to demonstrate a basic integration of
[Web3-Onboard](https://github.com/blocknative/web3-onboard) official docs for W3O can be found [here](https://onboard.blocknative.com/docs/modules/core#install).
This project uses [React App Rewired](https://www.npmjs.com/package/react-app-rewired) for building, checkout `config-overrides.js` for details.
For detailed documentation, head to [docs.blocknative.com](https://docs.blocknative.com)



View live demo [here](https://reactdemo.blocknative.com/)!

## Getting started

Clone the repo:

```bash
git clone https://github.com/blocknative/react-demo.git
```

Navigate to the project directory:

```bash
cd react-demo
```

Install the dependencies:

```bash
yarn
```

Start the development server:

```bash
yarn start
```

The project will be running on [localhost:3000](http://localhost:3000)

### SSL
Some wallets require that the website within which it runs be using a https
connection. If you are testing one of these wallets, Ledger is one, then you have
two options:
1. Setup a valid certificate for localhost using [this guide](https://www.freecodecamp.org/news/how-to-set-up-https-locally-with-create-react-app/).
2. Allow invalid certificates for resources loaded from localhost by navigating here within a chrome based browser: [chrome://flags/#allow-insecure-localhost](chrome://flags/#allow-insecure-localhost)