Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
build
src
.gitignore
README.md
bsconfig.json
credentials.js
deploy.ts
fetch.js
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

deployment-dapp-frontend

This example contains a frontend app scaffolded from reason-react that can be edited under my-react-app/src.

Running the example

Tutorial on how to run the examples can be found here.

Walkthrough

npm run start will build my-react-app, and the output will be available at my-react-app/build. Then it will start a local IPFS node using js-ipfs, which will warm up for a predefined amount of time (e.g. 3 minutes), then it will add the build output to it, and as a last step - it will pin the resulting IPFS hash of our build directory to Pinata.

Verifying the deployment

You can edit my-react-app/src/Welcome.re component, and change the string displayed as welcome text. Then run the deployment (npm run start) again.

When the script ends, it will output the hash of your pinned build. You can access it at: https://gateway.pinata.cloud/ipfs/<your hash goes here>/

You can’t perform that action at this time.