UNPKG

pinata-sdk

Version:

Unofficial SDK for [Pinata](https://pinata.cloud), implemented in ReasonML and compiled to Javascript.

18 lines (11 loc) 986 B
# 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](https://github.com/maht0rz/pinata-sdk#examples-). ### 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>/`