Ganache: Create a dApp Hosted on IPFS
Learn how to create a dApp hosted on IPFS.
Last updated
Was this helpful?
Learn how to create a dApp hosted on IPFS.
Last updated
Was this helpful?
Decentralized applications, known as dApps, are open-source applications developed using cryptocurrency and smart contracts, then deployed on a blockchain network.
Read below to learn how to create a dApp hosted on IPFS.
To do this, navigate to . If you don’t have an account already, , then log in.
Select ‘Create Bucket’ in the top right corner to create a new bucket.
Bucket names must be unique across all Filebase users, be between 3 and 63 characters long, and can contain only lowercase characters, numbers, and dashes.
Set up a credentials file for S3FS at ${HOME}/.passwd-s3fs. You will need to save your Filebase Access and Secret keys to this file and give it owner permissions. You can do so with the following commands:
echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs
chmod 600 ${HOME}/.passwd-s3fs
You can mount a Filebase IPFS bucket with the command:
s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o url=https://s3.filebase.com
mybucket: name of your Filebase bucket
/path/to/mountpoint
cd /path/to/mounted/bucket
git clone https://github.com/MatthieuScarset/quick-dapp.git
cd quick-dapp
yarn start
localhost:3000.
You’ll be prompted to authorize the connection to your cryptowallet:After authorizing your wallet, you will see the following default dApp screen:
Note: Do not use this app in a production environment!
cat ganache.json
{"addresses":{"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1":"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1"},"private_keys":{"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1":"0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d"}}
ganache.json
file from the quick-dapp directory./contracts
folder.To test your smart contracts, use the yarn test
command.
Then, to redeploy your dapp with your new smart contracts, use yarn migrate
, yarn stop && yarn start
.
ACCESS_KEY_ID is your Filebase Access key, and SECRET_ACCESS_KEY is your Filebase Secret key. For more information on Filebase access keys, see .