-
This is a simple React App where you can upload + pin any file to IPFS and it will generate a hash, link and QR code which can be then shared with people or used however you want.
-
Users can sign up to create an account on the app, all of which is handled via Firebase. You can limit sign ups to certain whitelisted domains (this can be done on Firebase as well).
-
As Infura no longer provides a free IPFS gateway, you will need to create an account and use your own API keys in order to run your own instance. You will also need to provide a Firebase API key.
Required:
Clone the repo and install the necessary dependencies with npm install
git clone https://github.com/et0and/estuary
cd estuary
yarn install
Rename the .env.example to .env and set the following secret variables accordingly:
- REACT_APP_INFURA_PROJECT_ID
- REACT_APP_INFURA_PROJECT_SECRET
- FIREBASE_API
- FIREBASE_AUTH_DOMAIN
- FIREBASE_PROJECT_ID
- FIREBASE_STORAGE_BUCKET
- FIREBASE_MSG_SENDER_ID
- FIREBASE_APP_ID
You can get these by signing up for the infura IPFS service and Firebase respectively. Infura requires a credit card but they won't charge you until you cross the free 5GB limit.
To run the application:
yarn start
The site is now running at http://localhost:3000
!
Many thanks to Lokesh Kumar (@codeTIT4N) for the original IPFS-upload repo, for which this is largely based off.